PropertyEditorAttribute(Type) Constructor

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

Namespace: DevExpress.ExpressApp.Editors

Assembly: DevExpress.ExpressApp.v18.2.dll

Declaration

[Obsolete("Use 'PropertyEditorAttribute(Type propertyType, bool defaultEditor)' instead.", true)]
public PropertyEditorAttribute(
    Type propertyType
)
<Obsolete("Use 'PropertyEditorAttribute(Type propertyType, bool defaultEditor)' instead.", True)>
Public Sub New(
    propertyType As Type
)

Parameters

Type Name Description
Type propertyType

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