Skip to main content
A newer version of this page is available. .

PropertyEditorAttribute(Type) Constructor

OBSOLETE

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.v19.1.dll

Declaration

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

Parameters

Name Type Description
propertyType Type

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

Remarks

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