TX Text Control .NET Server

EditMode Property

Property|Introduced in 23.0
Namespace
TXTextControl.Web.MVC
Package
TXTextControl.Web as TXTextControl.Web.DocumentEditor.dll from nuget.org, the private NuGet feed or Text Control Offline Packages

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