Skip to main content

DataLayoutItem.CurrencyValueAlignment Property

Gets or sets the horizontal alignment for the layout item editor’s value, if this value is formatted as currency.

Namespace: DevExpress.Xpf.LayoutControl

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

NuGet Package: DevExpress.Wpf.LayoutControl

Declaration

public static HorizontalAlignment CurrencyValueAlignment { get; set; }

Property Value

Type Description
HorizontalAlignment

A HorizontalAlignment enumerator value that specifies the horizontal alignment for the layout item editor’s value.

Remarks

You can apply a certain formatting to DataLayoutItems by declaring corresponding DataType attributes before related properties of the bound object. If a control hosted by this DataLayoutItem formats its values as currency, use the CurrencyValueAlignment property to set the horizontal alignment for the displayed text.

Note

The CurrencyValueAlignment property is in effect only for layout items that are generated automatically from the bound DataLayoutControl.CurrentItem object.

See Also