Back to Devexpress

PropertyEditor.CanFormatPropertyValue Property

expressappframework-devexpress-dot-expressapp-dot-editors-dot-propertyeditor-8552a172.md

latest1.9 KB
Original Source

PropertyEditor.CanFormatPropertyValue Property

Gets whether or not the PropertyEditor‘s value can be formatted.

Namespace : DevExpress.ExpressApp.Editors

Assembly : DevExpress.ExpressApp.v25.2.dll

NuGet Package : DevExpress.ExpressApp

Declaration

csharp
public virtual bool CanFormatPropertyValue { get; }
vb
Public Overridable ReadOnly Property CanFormatPropertyValue As Boolean

Property Value

TypeDescription
Boolean

true , if the value can be formatted; otherwise - false. The default is false.

|

Remarks

The CanFormatPropertyValue always returns false. This behavior should be overridden in descendants that use the PropertyEditor.DisplayFormat and/or PropertyEditor.EditMask properties to format a property value.

A custom PropertyEditor class will use the default formatting from the Application Model only if it overrides the CanFormatPropertyValue property in order to return true there.

See Also

PropertyEditor Class

PropertyEditor Members

DevExpress.ExpressApp.Editors Namespace