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

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

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

    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