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

BaseEditSettings.HorizontalContentAlignment Property

Gets or sets the horizontal alignment of an editor’s contents.

Namespace: DevExpress.Xpf.Editors.Settings

Assembly: DevExpress.Xpf.Core.v20.2.dll

NuGet Packages: DevExpress.WindowsDesktop.Wpf.Core, DevExpress.Wpf.Core

Declaration

public EditSettingsHorizontalAlignment HorizontalContentAlignment { get; set; }

Property Value

Type Description
EditSettingsHorizontalAlignment

An EditSettingsHorizontalAlignment enumeration member.

Available values:

Name Description
Left

An element aligned to the left of the layout slot for the parent element.

Center

An element aligned to the center of the layout slot for the parent element.

Right

An element aligned to the right of the layout slot for the parent element.

Stretch

An element stretched to fill the entire layout slot of the parent element.

Default

The element alignment is defined by the owner of the editor.

Property Paths

You can access this nested property as listed below:

Show 11 property paths
Object Type Path to HorizontalContentAlignment
BarEditItem
.EditSettings .HorizontalContentAlignment
FilterField
.EditSettings .HorizontalContentAlignment
TokenEditorBehavior
.TokenEditSettings .HorizontalContentAlignment
GanttColumn
.ActualEditSettings .HorizontalContentAlignment
ColumnBase
.ActualEditSettings .HorizontalContentAlignment
GridColumn
.ActualEditSettings .HorizontalContentAlignment
TreeListColumn
.ActualEditSettings .HorizontalContentAlignment
TreeViewControl
.EditSettings .HorizontalContentAlignment
CollectionDefinition
.EditSettings .HorizontalContentAlignment
PropertyDefinition
.EditSettings .HorizontalContentAlignment
SpreadsheetCustomCellEditEventArgs
.EditSettings .HorizontalContentAlignment

The following code snippets (auto-collected from DevExpress Examples) contain references to the HorizontalContentAlignment property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also