New to Telerik UI for WPFStart a free 30-day trial

Attribute for specifying a custom editor for a particular property.

Definition

Namespace:Telerik.Windows.Controls.Data.PropertyGrid

Assembly:Telerik.Windows.Controls.Data.dll

Syntax:

C#
[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

Initializes a new instance of the EditorAttribute class.

C#
public EditorAttribute(string editorTypeName, string assemblyFile, EditorStyle editorStyle)
Parameters:editorTypeNamestring

The type's name of the custom editor.

assemblyFilestring

The assembly's file path of the custom editor.

editorStyleEditorStyle

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

Initializes a new instance of the EditorAttribute class.

C#
public EditorAttribute(string editorTypeName, string assemblyFile, string targetProperty, EditorStyle editorStyle)
Parameters:editorTypeNamestring

The type's name of the custom editor.

assemblyFilestring

The assembly's file path of the custom editor.

targetPropertystring

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

editorStyleEditorStyle

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

Initializes a new instance of the EditorAttribute class.

C#
public EditorAttribute(string editorTypeName, string assemblyFile, string targetProperty)
Parameters:editorTypeNamestring

The type's name of the custom editor.

assemblyFilestring

The assembly's file path of the custom editor.

targetPropertystring

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

Initializes a new instance of the EditorAttribute class.

C#
public EditorAttribute(string editorTypeName, string assemblyFile)
Parameters:editorTypeNamestring

The type's name of the custom editor.

assemblyFilestring

The assembly's file path of the custom editor.

Initializes a new instance of the EditorAttribute class.

C#
public EditorAttribute(Type editorType, EditorStyle editorStyle)
Parameters:editorTypeType

The type of the custom editor.

editorStyleEditorStyle

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

Initializes a new instance of the EditorAttribute class.

C#
public EditorAttribute(Type editorType, string targetProperty, EditorStyle editorStyle)
Parameters:editorTypeType

The type of the custom editor.

targetPropertystring

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

editorStyleEditorStyle

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

Initializes a new instance of the EditorAttribute class.

C#
public EditorAttribute(Type editorType, string targetProperty)
Parameters:editorTypeType

The type of the custom editor.

targetPropertystring

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

Initializes a new instance of the EditorAttribute class.

C#
public EditorAttribute(Type editorType)
Parameters:editorTypeType

The type of the custom editor.

Properties

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

C#
public EditorStyle EditorStyle { get; }

Gets the type of the custom editor.

C#
public Type EditorType { get; }

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

C#
public string TargetProperty { get; }