ReadOnly Property
- Namespace
TXTextControl.ServerVisualisation
- Package
TXTextControl.asTextControl. Core. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesServer. Core. dll
- Also in
TXTextControl.asTextControl. ASP. SDK 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; }Public Property [ReadOnly] As BooleanExamples
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.");
}rulerBarViewGenerator.ReadOnly = True
If rulerBarViewGenerator.ReadOnly Then
Console.WriteLine("Ruler Bar View Generator: Read Only is enabled.")
End If