LayoutViewOptionsSingleRecordMode.CardAlignment Property
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.v21.1.dll
NuGet Packages: DevExpress.Win.Design, DevExpress.Win.Grid
Declaration
[DefaultValue(CardsAlignment.Center)]
[XtraSerializableProperty]
public virtual CardsAlignment CardAlignment { get; set; }
Property Value
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. |
Property Paths
You can access this nested property as listed below:
Object Type | Path to CardAlignment |
---|---|
LayoutView |
|
Remarks
This option is in effect when the LayoutViewOptionsSingleRecordMode.StretchCardToViewHeight or LayoutViewOptionsSingleRecordMode.StretchCardToViewWidth property is enabled (not both).