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

CardView.CardAlignment Property

Gets or sets the alignment of cards within a view.

Namespace: DevExpress.Xpf.Grid

Assembly: DevExpress.Xpf.Grid.v19.1.dll

Declaration

public Alignment CardAlignment { get; set; }

Property Value

Type Description
DevExpress.Xpf.Core.Alignment

A DevExpress.Xpf.Core.Alignment enumeration value that specifies the alignment of cards within a view.

Remarks

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.

CardAlign_Row_Center

Far

Aligns the bottom edges of cards.

CardAlign_Row_Far

Near

Aligns the top edges of cards.

CardAlign_Row_Near

Column Layout

Card Alignment

Description

Center

Cards are centered within a view.

CardAlign_Column_Center

Far

Aligns the right edges of cards.

CardAlign_Column_Far

Near

Aligns the left edges of cards.

CardAlign_Column_Near

To learn more, see Cards Layout.

See Also