windowsforms-devexpress-dot-xtragrid-dot-views-dot-layout-dot-layoutviewappearances.md
Provides access to the default appearance settings used to paint card captions in a LayoutView.
Namespace : DevExpress.XtraGrid.Views.Layout
Assembly : DevExpress.XtraGrid.v25.2.dll
NuGet Packages : DevExpress.Win.Grid, DevExpress.Win.Navigation
public AppearanceObject CardCaption { get; }
Public ReadOnly Property CardCaption As AppearanceObject
| Type | Description |
|---|---|
| AppearanceObject |
The default appearance settings used to paint card captions in a LayoutView.
|
Use the following settings provided by the CardCaption property to customize the default appearance settings used to paint card captions:
the CardCaption. BorderColor setting to change the card caption background and border color.
the CardCaption. ForeColor setting to change the text color. This property is in effect in any of the following cases: 1)the BorderColor setting is not set; 2) the WindowsFormsSettings.AutoCorrectForeColor property is set to False.
the CardCaption. Font* settings to adjust the text font attributes.
layoutView1.Appearance.CardCaption.BorderColor = Color.SlateBlue;
LayoutView1.Appearance.CardCaption.BorderColor = Color.SlateBlue
You can override these settings for the focused card and individual cards, using the LayoutViewAppearances.FocusedCardCaption property and LayoutView.CustomCardStyle event, respectively.
To display small icons within card captions, handle the LayoutView.CustomCardCaptionImage event.
Refer to the Appearance and Conditional Formatting document for information on appearances.
See Also