Back to Devexpress

PGridOptionsView.EditorAlignment Property

windowsforms-devexpress-dot-xtraverticalgrid-dot-pgridoptionsview-70e9da5f.md

latest3.0 KB
Original Source

PGridOptionsView.EditorAlignment Property

Gets or sets whether editors are aligned at the left, right, center, or stretched.

Namespace : DevExpress.XtraVerticalGrid

Assembly : DevExpress.XtraVerticalGrid.v25.2.dll

NuGet Packages : DevExpress.Win.Navigation, DevExpress.Win.VerticalGrid

Declaration

csharp
[DefaultValue(EditorAlignment.Default)]
[XtraSerializableProperty]
public EditorAlignment EditorAlignment { get; set; }
vb
<DefaultValue(EditorAlignment.Default)>
<XtraSerializableProperty>
Public Property EditorAlignment As EditorAlignment

Property Value

TypeDefaultDescription
EditorAlignmentDefault

A value that specifies whether editors are aligned at the left, right, center, or stretched.

|

Available values:

NameDescription
Default

The alignment is not specified explicitly. Uses the Center value.

| | Near |

Aligns the editor at the row’s near edge.

| | Far |

Aligns the editor at the row’s far edge.

| | Center |

Aligns the editor at the row’s center.

| | Stretch |

The editor is stretched up to the caption.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to EditorAlignment
PropertyGridControl

.OptionsView .EditorAlignment

|

Remarks

In the Office view, you can use the following options to specify how editors are displayed in rows:

  • RecordWidth — specifies the relative width of the column that displays property editors. 100 corresponds to one-third of the control’s total width.

  • EditorPosition — specifies whether property editors are located before or after property captions. All editors are located after captions except check editors.

  • EditorAlignment — specifies whether editors are aligned at the left, right, center, or stretched in the column that displays editors.

See Also

PGridOptionsView Class

PGridOptionsView Members

DevExpress.XtraVerticalGrid Namespace