EditMode Property
- Namespace
TXTextControl.Web. MVC
- Package
TXTextControl.asWeb TXTextControl.from nuget.org, the private NuGet feed or Text Control Offline PackagesWeb. DocumentEditor. 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 EditMode EditMode { get; set; }Public Property EditMode As EditModeExamples
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}");textControlSettings.EditMode = TXTextControl.Web.EditMode.Edit
Dim configuredValue = textControlSettings.EditMode
Console.WriteLine($"Edit Mode used by Text Control Settings: {configuredValue}")