EditMode Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WinForms. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesWindows. Forms. dll
Description
Gets or sets a value indicating whether the document's text is protected, or can be freely edited and formatted.
Syntax
public EditMode EditMode { get; set; }Public Property EditMode As EditModeMembers
| Value | Description |
|---|---|
| Edit | The document's text can be edited and formatted without restrictions. |
| ReadAndSelect | The document's text is displayed and text can be selected. Editing and formatting is restricted as specified through the DocumentPermissions property. |
| ReadOnly | The document's text is only displayed, text cannot be selected. |
| UsePassword | A dialog box to enter a password is opened to protect the edit mode. This value can only be combined with EditMode.ReadAndSelect using the bitwise or operator. |
Examples
The following example uses TextControl.EditMode to configure edit mode as part of the text control workflow. The change is then applied to the active document or user interface.
textControl.EditMode = EditMode.Edit;
textControl.Update();textControl.EditMode = EditMode.Edit
textControl.Update()