Class
EditorAttribute

Attribute for specifying a custom editor for a particular property.

Definition

Namespace:Telerik.Windows.Controls.Data.PropertyGrid

Assembly:Telerik.Windows.Controls.Data.dll

Syntax:

cs-api-definition
[SuppressMessage("Performance", "CA1813:Avoid unsealed attributes", Justification = "<Pending>")]
[AttributeUsage(AttributeTargets.All, Inherited = true, AllowMultiple = false)]
public class EditorAttribute : Attribute

Inheritance: objectAttributeEditorAttribute

Inherited Members Attribute.GetCustomAttributes(MemberInfo, Type)Attribute.GetCustomAttributes(MemberInfo, Type, bool)Attribute.GetCustomAttributes(MemberInfo)Attribute.GetCustomAttributes(MemberInfo, bool)Attribute.IsDefined(MemberInfo, Type)Attribute.IsDefined(MemberInfo, Type, bool)Attribute.GetCustomAttribute(MemberInfo, Type)Attribute.GetCustomAttribute(MemberInfo, Type, bool)Attribute.GetCustomAttributes(ParameterInfo)Attribute.GetCustomAttributes(ParameterInfo, Type)Attribute.GetCustomAttributes(ParameterInfo, Type, bool)Attribute.GetCustomAttributes(ParameterInfo, bool)Attribute.IsDefined(ParameterInfo, Type)Attribute.IsDefined(ParameterInfo, Type, bool)Attribute.GetCustomAttribute(ParameterInfo, Type)Attribute.GetCustomAttribute(ParameterInfo, Type, bool)Attribute.GetCustomAttributes(Module, Type)Attribute.GetCustomAttributes(Module)Attribute.GetCustomAttributes(Module, bool)Attribute.GetCustomAttributes(Module, Type, bool)Attribute.IsDefined(Module, Type)Attribute.IsDefined(Module, Type, bool)Attribute.GetCustomAttribute(Module, Type)Attribute.GetCustomAttribute(Module, Type, bool)Attribute.GetCustomAttributes(Assembly, Type)Attribute.GetCustomAttributes(Assembly, Type, bool)Attribute.GetCustomAttributes(Assembly)Attribute.GetCustomAttributes(Assembly, bool)Attribute.IsDefined(Assembly, Type)Attribute.IsDefined(Assembly, Type, bool)Attribute.GetCustomAttribute(Assembly, Type)Attribute.GetCustomAttribute(Assembly, Type, bool)Attribute.Equals(object)Attribute.GetHashCode()Attribute.Match(object)Attribute.IsDefaultAttribute()Attribute.TypeId

Constructors

EditorAttribute(Type)

Initializes a new instance of the EditorAttribute class.

Declaration

cs-api-definition
public EditorAttribute(Type editorType)

Parameters

editorType

Type

The type of the custom editor.

EditorAttribute(Type, EditorStyle)

Initializes a new instance of the EditorAttribute class.

Declaration

cs-api-definition
public EditorAttribute(Type editorType, EditorStyle editorStyle)

Parameters

editorType

Type

The type of the custom editor.

editorStyle

EditorStyle

The style of the UI component used for hosting the custom editor.

EditorAttribute(Type, string)

Initializes a new instance of the EditorAttribute class.

Declaration

cs-api-definition
public EditorAttribute(Type editorType, string targetProperty)

Parameters

editorType

Type

The type of the custom editor.

targetProperty

string

The property of the custom editor that should be used for binding.

EditorAttribute(Type, string, EditorStyle)

Initializes a new instance of the EditorAttribute class.

Declaration

cs-api-definition
public EditorAttribute(Type editorType, string targetProperty, EditorStyle editorStyle)

Parameters

editorType

Type

The type of the custom editor.

targetProperty

string

The property of the custom editor that should be used for binding.

editorStyle

EditorStyle

The style of the UI component used for hosting the custom editor.

EditorAttribute(string, string)

Initializes a new instance of the EditorAttribute class.

Declaration

cs-api-definition
[SuppressMessage("Design", "CA1019:Define accessors for attribute arguments", Justification = "<Pending>")]
public EditorAttribute(string editorTypeName, string assemblyFile)

Parameters

editorTypeName

string

The type's name of the custom editor.

assemblyFile

string

The assembly's file path of the custom editor.

EditorAttribute(string, string, EditorStyle)

Initializes a new instance of the EditorAttribute class.

Declaration

cs-api-definition
public EditorAttribute(string editorTypeName, string assemblyFile, EditorStyle editorStyle)

Parameters

editorTypeName

string

The type's name of the custom editor.

assemblyFile

string

The assembly's file path of the custom editor.

editorStyle

EditorStyle

The style of the UI component used for hosting the custom editor.

EditorAttribute(string, string, string)

Initializes a new instance of the EditorAttribute class.

Declaration

cs-api-definition
public EditorAttribute(string editorTypeName, string assemblyFile, string targetProperty)

Parameters

editorTypeName

string

The type's name of the custom editor.

assemblyFile

string

The assembly's file path of the custom editor.

targetProperty

string

The property of the custom editor that should be used for binding.

EditorAttribute(string, string, string, EditorStyle)

Initializes a new instance of the EditorAttribute class.

Declaration

cs-api-definition
public EditorAttribute(string editorTypeName, string assemblyFile, string targetProperty, EditorStyle editorStyle)

Parameters

editorTypeName

string

The type's name of the custom editor.

assemblyFile

string

The assembly's file path of the custom editor.

targetProperty

string

The property of the custom editor that should be used for binding.

editorStyle

EditorStyle

The style of the UI component used for hosting the custom editor.

Properties

EditorStyle

Gets the style of the UI component used for hosting the custom editor.

Declaration

cs-api-definition
public EditorStyle EditorStyle { get; }

Property Value

EditorStyle

EditorType

Gets the type of the custom editor.

Declaration

cs-api-definition
public Type EditorType { get; }

Property Value

Type

TargetProperty

Gets the property of the custom editor that should be used for binding.

Declaration

cs-api-definition
public string TargetProperty { get; }

Property Value

string