NumericEdit.DisplayFormat Property
Gets or sets the pattern used to format the editor’s value. This is a bindable property.
Namespace: DevExpress.Maui.Editors
Assembly: DevExpress.Maui.Editors.dll
NuGet Package: DevExpress.Maui.Editors
Declaration
public string DisplayFormat { get; set; }
Property Value
Type | Description |
---|---|
String | The text pattern for the editor’s value. |
Remarks
Use the DisplayFormat property to specify the format for a numeric value displayed in the editor. To create format patterns, you can use standard or custom format specifiers (see the MSDN topics Standard Numeric Format Strings and Custom Numeric Format Strings), for example:
Currency
<dxe:NumericEdit Value="5000" DisplayFormat="c"/>
Numeric
<dxe:NumericEdit Value="1234.567" DisplayFormat="n1"/>
Percent
<dxe:NumericEdit Value="0.5678" DisplayFormat="p"/>
See Also