SpreadsheetNameBoxControl.ReadOnly Property
Gets or sets a value indicating whether the SpreadsheetNameBoxControl‘s value can be changed by end-users.
Namespace: DevExpress.XtraSpreadsheet
Assembly: DevExpress.XtraSpreadsheet.v18.2.dll
Declaration
[DXCategory("Behavior")]
[DefaultValue(DefaultBoolean.Default)]
public DefaultBoolean ReadOnly { get; set; }
Property Value
Type | Default | Description |
---|---|---|
DefaultBoolean | **Default** | A DefaultBoolean enumeration value specifying the accessibility of the SpreadsheetNameBoxControl control. The default is DefaultBoolean.Default. |
Available values:
Name | Description |
---|---|
True | Corresponds to a Boolean value of true. |
False | Corresponds to a Boolean value of false. |
Default | The value is determined by the current object’s parent object setting (e.g., a control setting). |
Remarks
By default, the DefaultBoolean.Default value is treated as False for the SpreadsheetNameBoxControl, so that end-users can modify values of the name box. To prevent end-users from editing values in the SpreadsheetNameBoxControl, set the ReadOnly property to DefaultBoolean.True.
Note
Changing the ReadOnly property value raises the SpreadsheetNameBoxControl.ReadOnlyChanged event.