windowsforms-devexpress-dot-xtragrid-dot-views-dot-layout-c1a31fdf.md
Contains values that specify how cards in a LayoutView are aligned.
Namespace : DevExpress.XtraGrid.Views.Layout
Assembly : DevExpress.XtraGrid.v25.2.dll
NuGet Packages : DevExpress.Win.Grid, DevExpress.Win.Navigation
public enum CardsAlignment
Public Enum CardsAlignment
| 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.
|
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