Document Permissions and Password Encryption
Summary
TX Text Control allows you to protect documents with specific permissions and to protect documents from editing and formatting actions. When opening such a document with TX Text Control without providing the master password, the permissions are applied and the document is protected automatically when the TXTextControl.TextControl.EditMode property is set to ReadAndSelect. The following code shows how to prevent users from making formatting changes. The document content can be changed, but formatting actions are not allowed: If you want to save the permission settings in the document, the EditMode property must be set to ReadAndSelect and UsePassword. If this document is re-opened and and the EditMode is set to ReadAndSelect, the permissions are automatically applied: The included ribbon bar of TX Text Control is reflecting these document permissions automatically.