windowsforms-devexpress-dot-xtragrid-dot-views-dot-layout-dot-layoutviewoptionssinglerecordmode.md
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.v25.2.dll
NuGet Packages : DevExpress.Win.Grid, DevExpress.Win.Navigation
[DefaultValue(CardsAlignment.Center)]
[XtraSerializableProperty]
public virtual CardsAlignment CardAlignment { get; set; }
<DefaultValue(CardsAlignment.Center)>
<XtraSerializableProperty>
Public Overridable Property CardAlignment As CardsAlignment
| 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.
|
You can access this nested property as listed below:
| Object Type | Path to CardAlignment |
|---|---|
| LayoutView |
.OptionsSingleRecordMode .CardAlignment
|
This option is in effect when the LayoutViewOptionsSingleRecordMode.StretchCardToViewHeight or LayoutViewOptionsSingleRecordMode.StretchCardToViewWidth property is enabled (not both).
See Also
LayoutViewOptionsSingleRecordMode Class