ReadOnly Property
- Namespace
TXTextControl.Windows. Forms. Ribbon
- Package
TXTextControl.asTextControl. WinForms. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesWindows. Forms. dll
Description
Gets or sets a value determining the ribbon's read only mode. When the ribbon 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 Ribbon.ReadOnly to prevent users from editing through the ribbon. The change is then applied to the active document or user interface.
ribbon.ReadOnly = true;
ribbon.Update();ribbon.ReadOnly = True
ribbon.Update()