TX Text Control .NET for Windows Forms

EditMode Property

Property
Namespace
TXTextControl
Package
TXTextControl.TextControl.WinForms.SDK as TXTextControl.Windows.Forms.dll from the private NuGet feed or Text Control Offline Packages

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; }

Members

ValueDescription
EditThe document's text can be edited and formatted without restrictions.
ReadAndSelectThe document's text is displayed and text can be selected. Editing and formatting is restricted as specified through the DocumentPermissions property.
ReadOnlyThe document's text is only displayed, text cannot be selected.
UsePasswordA 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();