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

CardsAlignment Enum

Contains values that specify how cards in a LayoutView are aligned.

Namespace: DevExpress.XtraGrid.Views.Layout

Assembly: DevExpress.XtraGrid.v19.1.dll


public enum CardsAlignment


Name Description

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


Centers the View’s card(s).


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

Related API Members

The following properties accept/return CardsAlignment values:


This enumerator contains values to initialize the LayoutViewOptionsView.CardsAlignment and LayoutViewOptionsSingleRecordMode.CardAlignment properties.

The LayoutViewOptionsView.CardsAlignment property specifies whether the top, center or bottom of cards are aligned when they have different heights.

The LayoutViewOptionsSingleRecordMode.CardAlignment property is in effect when a single card is displayed within the View at one time, and it is stretched to the View’s width or height. The property specifies the card’s position within the View in this mode.

See Also