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

DataFormDisplayOptionsAttribute.LabelHorizontalAlignment Property

Gets or sets the horizontal alignment of a label displayed above the editor.

Namespace: DevExpress.Maui.DataForm

Assembly: DevExpress.Maui.Editors.dll

NuGet Package: DevExpress.Maui.Editors

#Declaration

C#
public LayoutAlignment LabelHorizontalAlignment { get; set; }

#Property Value

Type Description
LayoutAlignment

The horizontal alignment.

#Remarks

You can align a label horizontally when it is above an editor (the DataFormDisplayOptionsAttribute.LabelPosition property is set to Top). To do this, set the editor’s LabelHorizontalAlignment property to Start, End, or Center.

To specify the position and horizontal alignment for labels of all editors on the form, use the DataFormView.EditorLabelPosition and DataFormView.EditorLabelHorizontalAlignment properties.

See Also