Back to Devexpress

LayoutViewOptionsSingleRecordMode.CardAlignment Property

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

latest3.4 KB
Original Source

LayoutViewOptionsSingleRecordMode.CardAlignment Property

Gets or sets the card’s alignment within the View when the card is stretched to fully fill the View’s width or height. This option is in effect when the LayoutViewOptionsSingleRecordMode.StretchCardToViewHeight or LayoutViewOptionsSingleRecordMode.StretchCardToViewWidth property is enabled (not both).

Namespace : DevExpress.XtraGrid.Views.Layout

Assembly : DevExpress.XtraGrid.v25.2.dll

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

Declaration

csharp
[DefaultValue(CardsAlignment.Center)]
[XtraSerializableProperty]
public virtual CardsAlignment CardAlignment { get; set; }
vb
<DefaultValue(CardsAlignment.Center)>
<XtraSerializableProperty>
Public Overridable Property CardAlignment As CardsAlignment

Property Value

TypeDefaultDescription
CardsAlignmentCenter

A CardsAlignment value that specifies the card’s alignment.

|

Available values:

NameDescription
Near

Aligns left/top edges of cards or displays the current card along the View’s left/top edge.

| | Center |

Centers the View’s card(s).

| | Far |

Aligns right/bottom edges of cards or displays the current card along the View’s right/bottom edge.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to CardAlignment
LayoutView

.OptionsSingleRecordMode .CardAlignment

|

Remarks

This option is in effect when the LayoutViewOptionsSingleRecordMode.StretchCardToViewHeight or LayoutViewOptionsSingleRecordMode.StretchCardToViewWidth property is enabled (not both).

See Also

StretchCardToViewHeight

StretchCardToViewWidth

LayoutViewOptionsSingleRecordMode Class

LayoutViewOptionsSingleRecordMode Members

DevExpress.XtraGrid.Views.Layout Namespace