All docs
V20.2
20.2
20.1
The page you are viewing does not exist in version 20.1. This link will take you to the root page.
19.2
The page you are viewing does not exist in version 19.2. This link will take you to the root page.
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
1.1
The page you are viewing does not exist in version 1.1. This link will take you to the root page.

NumericEdit.DisplayFormat Property

Gets or sets the pattern used to format the editor's value.

Namespace: DevExpress.XamarinForms.Editors

Assembly: DevExpress.XamarinForms.Editors.dll

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"/>
    

    NumericEdit.DisplayFormat - Currency

  • Numeric

    <dxe:NumericEdit Value="1234.567" DisplayFormat="n1"/>
    

    NumericEdit.DisplayFormat - Numeric

  • Percent

    <dxe:NumericEdit Value="0.5678" DisplayFormat="p"/>
    

    NumericEdit.DisplayFormat - Percent

See Also