Back to Devexpress

DataFormItem.LabelHorizontalAlignment Property

maui-devexpress-dot-maui-dot-dataform-dot-dataformitem-5494aaa7.md

latest1.6 KB
Original Source

DataFormItem.LabelHorizontalAlignment Property

Gets or sets the horizontal alignment of a label displayed above the editor. This is a bindable property.

Namespace : DevExpress.Maui.DataForm

Assembly : DevExpress.Maui.Editors.dll

NuGet Package : DevExpress.Maui.Editors

Declaration

csharp
public LayoutAlignment? LabelHorizontalAlignment { get; set; }

Property Value

TypeDescription
Nullable<LayoutAlignment>

The horizontal alignment.

|

Remarks

You can align a label horizontally when it is above an editor (the DataFormItem.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

DataFormItem Class

DataFormItem Members

DevExpress.Maui.DataForm Namespace