NumericEdit.DisplayFormat Property
Gets or sets the pattern used to format the editor’s value.
Namespace: DevExpress.XamarinForms.Editors
Assembly: DevExpress.XamarinForms.Editors.dll
NuGet Package: DevExpress.XamarinForms.Editors
Declaration
public string DisplayFormat { get; set; }
Property Value
Type | Description |
---|---|
String | The text pattern for 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