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.

Introduced: X14.

Syntax

public bool ReadOnly { get; set; }
Public Property ReadOnly As Boolean

Examples

The following example uses the ReadOnly property to still display all formatting attributes of the connected TextControl, but it will prevent changing of formatting attributes.

TXTextControl.RulerBar  rulerBar = new TXTextControl.RulerBar();

rulerBar.Alignment   = TXTextControl.RulerBarAlignment.Top;
rulerBar.BorderStyle = TXTextControl.RulerBarBorderStyle.Flat;
rulerBar.FormulaMode = TXTextControl.RulerBarFormulaMode.Auto;
rulerBar.ReadOnly    = true;
Dim rulerBar As TXTextControl.RulerBar = New TXTextControl.RulerBar()

rulerBar.Alignment   = TXTextControl.RulerBarAlignment.Top
rulerBar.BorderStyle = TXTextControl.RulerBarBorderStyle.Flat
rulerBar.FormulaMode = TXTextControl.RulerBarFormulaMode.Auto
rulerBar.ReadOnly    = true
End Sub