Skip to main content
.NET 8.0+

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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.v24.2.dll

NuGet Package: DevExpress.ExpressApp

#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