TX Text Control .NET Server

ReadOnly Property

Property|Introduced in 24.0
Namespace
TXTextControl.ServerVisualisation
Package
TXTextControl.TextControl.Core.SDK as TXTextControl.Server.Core.dll from the private NuGet feed or Text Control Offline Packages
Also in
TXTextControl.TextControl.ASP.SDK as TXTextControl.Server.dll

Description

Gets or sets a value determining the ruler bar's read only mode. When the ruler bar is set to read only, it still shows all formatting attributes of the connected TextControl, but formatting attributes cannot be changed.

Syntax

public bool ReadOnly { get; set; }

Examples

The following example uses RulerBarViewGenerator.ReadOnly to prevent users from editing through the ruler bar view generator. The configured value is checked before the workflow continues.

rulerBarViewGenerator.ReadOnly = true;
if (rulerBarViewGenerator.ReadOnly)
{
    Console.WriteLine("Ruler Bar View Generator: Read Only is enabled.");
}