Back to Devexpress

LayoutViewAppearances.FocusedCardCaption Property

windowsforms-devexpress-dot-xtragrid-dot-views-dot-layout-dot-layoutviewappearances-7e6e1191.md

latest3.3 KB
Original Source

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.v25.2.dll

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

Declaration

csharp
public AppearanceObject FocusedCardCaption { get; }
vb
Public ReadOnly Property FocusedCardCaption As AppearanceObject

Property Value

TypeDescription
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

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

  • C#

  • VB.NET

csharp
layoutView1.Appearance.FocusedCardCaption.BorderColor = Color.Teal;
vb
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

CardCaption

LayoutViewAppearances Class

LayoutViewAppearances Members

DevExpress.XtraGrid.Views.Layout Namespace