Skip to main content
.NET 6.0+

PropertyEditorAttribute(Type) Constructor


Use 'PropertyEditorAttribute(Type propertyType, bool defaultEditor)' instead.

Creates an instance of the PropertyEditorAttribute class, initializing the PropertyEditorAttribute.PropertyType property.

Namespace: DevExpress.ExpressApp.Editors

Assembly: DevExpress.ExpressApp.v24.1.dll

NuGet Package: DevExpress.ExpressApp


[Obsolete("Use 'PropertyEditorAttribute(Type propertyType, bool defaultEditor)' instead.", true)]
public PropertyEditorAttribute(
    Type propertyType


Name Type Description
propertyType Type

The type of properties for which the target Property Editor is designed.


Use this constructor when you want your Property Editor to be automatically set for properties of a particular data type. In this instance, pass the required data type as the first attribute parameter. As a result, the EditorType property will be set to your Property Editor type for the Application Model’s ViewItems | PropertyEditors | PropertyEditor node, that defines the data type passed as a parameter. Note that your Property Editor might not be set automatically if there is another Property Editor with the same parameter.

See Also