TX Text Control ActiveX

EditMode Property

Property

Specifies whether the document is protected or can be freely edited and formatted.

Syntax

TXTextControl.EditMode [= value]
SettingDescription
0 - Edit(Default) This mode can be used to edit and display text. The cursor is the text I-beam cursor.
1 - ProtectedThe document's text is displayed and text can be selected. Editing and formatting is restricted as specified through the TXTextControl.DocumentPermissions property. The document can contain editable regions where editing and formatting remain possible.
2 - Read onlyThis mode can be used to display text. Text input and selecting text with the mouse or the keyboard is not possible. The cursor is the standard arrow cursor.
3 - Password ProtectedThe document's text is displayed and text can be selected. Editing and formatting is restricted as specified through the TXTextControl.DocumentPermissions property. A dialog box to enter a password is opened to protect the mode. To unprotect the document the same password must be entered when the edit mode is reset to Edit. The set of permissions and the password are saved in the document in an encrypted form.

Data Types

Integer.

See Also