The requested page is not available for the requested platform. You are viewing the content for Default platform.

PropertyEditor.DisplayFormat Property

Specifies the pattern for formatting values of the current Property Editor.

Namespace: DevExpress.ExpressApp.Editors

Assembly: DevExpress.ExpressApp.v19.1.dll

Declaration

public string DisplayFormat { get; set; }
Public Property DisplayFormat As String

Property Value

Type Description
String

A string representing the format pattern.

Remarks

By default, this property returns the IModelCommonMemberViewItem.DisplayFormat property value of the Application Model's node. This node can be accessed using the PropertyEditor.Model property.

The DisplayFormat attribute specifies the property's display format pattern:

  • in WinForms and ASP.NET applications

    For instance, if the integer property's format pattern is "ID:{0}", the property will be displayed with the "ID:" prefix. The "{0}" placeholder specifies the position of the property value within the displayed text. The complete syntax of the placeholder is "{0[,alignment][:formatString]}". The optional alignment component is a signed integer indicating the preferred formatted field width. The formatted data in the field is right-aligned if alignment is positive, and left-aligned if alignment is negative. The optional formatString component consists of Format Specifiers.

  • in Mobile applications

    Refer the format topic to learn about formatting values in Mobile editors.

If you implement a custom Property Editor, consider changing the control's behavior in accordance with the DisplayFormat property value.

See Also