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

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