Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

BaseEditSettings.HorizontalContentAlignment Property

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

Namespace: DevExpress.Xpf.Editors.Settings

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

NuGet Package: 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:

Object Type Path to HorizontalContentAlignment
BarEditItem
.EditSettings .HorizontalContentAlignment
FilterField
.EditSettings .HorizontalContentAlignment
ColumnBase
.ActualEditSettings .HorizontalContentAlignment
ColumnBase
.EditSettings .HorizontalContentAlignment
TreeViewControl
.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