Back to Devexpress

IModelCommonMemberViewItem.PropertyEditorType Property

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

latest2.7 KB
Original Source

IModelCommonMemberViewItem.PropertyEditorType Property

Specifies the Property Editor that is used for the current property in a UI.

Namespace : DevExpress.ExpressApp.Model

Assembly : DevExpress.ExpressApp.v25.2.dll

NuGet Package : DevExpress.ExpressApp

Declaration

csharp
[DataSourceProperty("PropertyEditorTypes", new string[]{})]
[Required(typeof(ModelMemberRequiredCalculator))]
Type PropertyEditorType { get; set; }
vb
<DataSourceProperty("PropertyEditorTypes", New String() {})>
<Required(GetType(ModelMemberRequiredCalculator))>
Property PropertyEditorType As Type

Property Value

TypeDescription
Type

A Type object specifying the Property Editor that is used for the current property in a UI.

|

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the PropertyEditorType 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-how-to-add-an-unbound-column-to-gridlisteditor-to-execute-a-custom-action-for-a-record/CS/EFCore/ButtonInListEF/ButtonInListEF.Win/Controllers/SimpleBusinessActionGridListViewController.cs#L45

csharp
unboundModelColumn.Width = 50;
unboundModelColumn.PropertyEditorType = typeof(DefaultPropertyEditor);
for(int i = gridListEditor.Columns.Count - 1; i >= 0; i--) {

See Also

IModelCommonMemberViewItem Interface

IModelCommonMemberViewItem Members

DevExpress.ExpressApp.Model Namespace