windowsforms-devexpress-dot-xtragrid-dot-views-dot-layout-dot-layoutviewappearances-7e6e1191.md
Gets the appearance settings used to paint the focused card’s caption in a LayoutView.
Namespace : DevExpress.XtraGrid.Views.Layout
Assembly : DevExpress.XtraGrid.v25.2.dll
NuGet Packages : DevExpress.Win.Grid, DevExpress.Win.Navigation
public AppearanceObject FocusedCardCaption { get; }
Public ReadOnly Property FocusedCardCaption As AppearanceObject
| Type | Description |
|---|---|
| AppearanceObject |
The appearance settings used to paint the focused card’s caption in a LayoutView.
|
To customize the default appearance settings used to paint all card captions, use the LayoutViewAppearances.CardCaption property.
The FocusedCardCaption property allows you to customize appearance options of the focused card’s caption. Use the following settings:
the FocusedCardCaption. BorderColor setting to change the card caption background and border color
the FocusedCardCaption. 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 FocusedCardCaption. Font* settings to adjust the text font attributes.
layoutView1.Appearance.FocusedCardCaption.BorderColor = Color.Teal;
LayoutView1.Appearance.FocusedCardCaption.BorderColor = Color.Teal
Handle the LayoutView.CustomCardStyle event to customize the appearance settings of individual card captions.
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