Back to Devexpress

IModelCommonMemberViewItem.DisplayFormat Property

expressappframework-devexpress-dot-expressapp-dot-model-dot-imodelcommonmemberviewitem-165b4391.md

latest3.2 KB
Original Source

IModelCommonMemberViewItem.DisplayFormat Property

Specifies a display format pattern for a Property Editor‘s value.

Namespace : DevExpress.ExpressApp.Model

Assembly : DevExpress.ExpressApp.v25.2.dll

NuGet Package : DevExpress.ExpressApp

Declaration

csharp
[ModelBrowsable(typeof(ListEditorsVisibilityCalculator))]
string DisplayFormat { get; set; }
vb
<ModelBrowsable(GetType(ListEditorsVisibilityCalculator))>
Property DisplayFormat As String

Property Value

TypeDescription
String

A display format pattern for a Property Editor’s value.

|

Remarks

The default DisplayFormat value is the IModelRegisteredPropertyEditor.DefaultDisplayFormat property value.

Use the Model Editor to set the DisplayFormat property value as described in the following article: Format a Property Value.

See the following topic for more information on how to specify a display format pattern: PropertyEditor.DisplayFormat.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the DisplayFormat property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

xaf-win-gantt-control/CS/XPO/GanttSolutionXPO/GanttSolutionXPO.Win/Editors/CustomGanttEditor.cs#L73

csharp
ganttColumn.SortIndex = column.SortIndex;
ganttColumn.Format.FormatString = column.DisplayFormat;
ganttColumn.Format.FormatType = DevExpress.Utils.FormatType.Custom;

See Also

IModelCommonMemberViewItem Interface

IModelCommonMemberViewItem Members

DevExpress.ExpressApp.Model Namespace