windowsforms-devexpress-dot-xtraeditors-dot-repository-dot-repositoryitem-769721d4.md
Gets appearance settings used to paint the read-only editor.
Namespace : DevExpress.XtraEditors.Repository
Assembly : DevExpress.XtraEditors.v25.2.dll
NuGet Package : DevExpress.Win.Navigation
[DXCategory("Appearance")]
public virtual AppearanceObject AppearanceReadOnly { get; }
<DXCategory("Appearance")>
Public Overridable ReadOnly Property AppearanceReadOnly As AppearanceObject
| Type | Description |
|---|---|
| AppearanceObject |
A AppearanceObject object which provides the appearance settings used to paint the read-only editor.
|
For more information on appearances, see the Application Appearance and Skin Colors document.
Important
In Advanced Mode or when the WXI Skin is applied, use the Appearance.BackColor property to specify the editor’s background color. Other appearance settings that specify the background color of the editor in different states are ignored (for example, the AppearanceReadOnly.BackColor, AppearanceFocused.BackColor, AppearanceDisabled.BackColor).
if (textEdit1.Properties.ReadOnly) {
textEdit1.Properties.Appearance.BackColor = Color.LightGray;
}
If textEdit1.Properties.ReadOnly Then
textEdit1.Properties.Appearance.BackColor = Color.LightGray
End If
See Also