Back to Devexpress

LayoutViewAppearances.CardCaption Property

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

latest3.3 KB
Original Source

LayoutViewAppearances.CardCaption Property

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

Declaration

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

Property Value

TypeDescription
AppearanceObject

The default appearance settings used to paint card captions in a LayoutView.

|

Remarks

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.

  • C#

  • VB.NET

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

FocusedCardCaption

CustomCardCaptionImage

LayoutViewAppearances Class

LayoutViewAppearances Members

DevExpress.XtraGrid.Views.Layout Namespace