Skip to main content
A newer version of this page is available. .

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.v19.1.dll

Declaration

[DefaultValue(CardsAlignment.Center)]
[XtraSerializableProperty]
public virtual CardsAlignment CardAlignment { get; set; }

Property Value

Type Default Description
CardsAlignment **Center**

A CardsAlignment value that specifies the card’s alignment.

Available values:

Name Description
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 Type Path 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