wpf-devexpress-dot-xpf-dot-grid-dot-cardview-225dcf20.md
Gets or sets the alignment of cards within a view.
Namespace : DevExpress.Xpf.Grid
Assembly : DevExpress.Xpf.Grid.v25.2.dll
NuGet Package : DevExpress.Wpf.Grid.Core
public Alignment CardAlignment { get; set; }
Public Property CardAlignment As Alignment
| Type | Description |
|---|---|
| DevExpress.Xpf.Core.Alignment |
A DevExpress.Xpf.Core.Alignment enumeration value that specifies the alignment of cards within a view.
|
Cards can be arranged in rows or columns. The layout of cards is specified by the CardView.CardLayout property. The way cards are aligned within a view is specified by the CardAlignment property, and depends on the layout:
Row Layout
|
Card Alignment
|
Description
| | --- | --- | |
Center
|
Cards are centered within a view.
| |
Far
|
Aligns the bottom edges of cards.
| |
Near
|
Aligns the top edges of cards.
|
Column Layout
|
Card Alignment
|
Description
| | --- | --- | |
Center
|
Cards are centered within a view.
| |
Far
|
Aligns the right edges of cards.
| |
Near
|
Aligns the left edges of cards.
|
To learn more, see Cards Layout.
See Also