Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

LayoutViewAppearances.FocusedCardCaption Property

Gets the appearance settings used to paint the focused card’s caption in a LayoutView.

Namespace: DevExpress.XtraGrid.Views.Layout

Assembly: DevExpress.XtraGrid.v24.2.dll

NuGet Packages: DevExpress.Win.Grid, DevExpress.Win.Navigation

#Declaration

public AppearanceObject FocusedCardCaption { get; }

#Property Value

Type Description
AppearanceObject

The appearance settings used to paint the focused card’s caption in a LayoutView.

#Remarks

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

    In different skins and control states, the control can apply the specified color as is, apply the color’s hue or blend the color with a corresponding skin element.

  • 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;

LayoutView.FocusedCardCaption.BorderColor.example.png

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