TX Text Control .NET Server

EditMode Property

Property|Introduced in 22.0
Namespace
TXTextControl.Web
Package
None: the TX Text Control .NET Server setup installs it, for .NET Framework.
Assembly
TXTextControl.Web.dll

Description

Specifies or returns a value of type Web.EditMode indicating whether the document's text is read-only, can be selected or is editable.

Syntax

public Web.EditMode EditMode { get; set; }

Examples

In the current ASP.NET Core integration, EditMode is configured through TextControlSettings. The following example sets it while creating the editor configuration.

textControlSettings.EditMode = TXTextControl.Web.EditMode.Edit;
var configuredValue = textControlSettings.EditMode;
Console.WriteLine($"Edit Mode used by Text Control Settings: {configuredValue}");