ClassEditorAttribute
Attribute for specifying a custom editor for a particular property.
Definition
Namespace:Telerik.Windows.Controls.Data.PropertyGrid
Assembly:Telerik.Windows.Controls.Data.dll
Syntax:
[SuppressMessage("Performance", "CA1813:Avoid unsealed attributes", Justification = "<Pending>")]
[AttributeUsage(AttributeTargets.All, Inherited = true, AllowMultiple = false)]
public class EditorAttribute : Attribute
Inheritance: objectAttributeEditorAttribute
Inherited Members
Constructors
EditorAttribute(Type)
Initializes a new instance of the EditorAttribute class.
Declaration
public EditorAttribute(Type editorType)
Parameters
editorType
The type of the custom editor.
EditorAttribute(Type, EditorStyle)
Initializes a new instance of the EditorAttribute class.
Declaration
public EditorAttribute(Type editorType, EditorStyle editorStyle)
Parameters
editorType
The type of the custom editor.
editorStyle
The style of the UI component used for hosting the custom editor.
EditorAttribute(Type, string)
Initializes a new instance of the EditorAttribute class.
EditorAttribute(Type, string, EditorStyle)
Initializes a new instance of the EditorAttribute class.
Declaration
public EditorAttribute(Type editorType, string targetProperty, EditorStyle editorStyle)
Parameters
editorType
The type of the custom editor.
targetProperty
The property of the custom editor that should be used for binding.
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
[SuppressMessage("Design", "CA1019:Define accessors for attribute arguments", Justification = "<Pending>")]
public EditorAttribute(string editorTypeName, string assemblyFile)
Parameters
editorTypeName
The type's name of the custom editor.
assemblyFile
The assembly's file path of the custom editor.
EditorAttribute(string, string, EditorStyle)
Initializes a new instance of the EditorAttribute class.
Declaration
public EditorAttribute(string editorTypeName, string assemblyFile, EditorStyle editorStyle)
Parameters
editorTypeName
The type's name of the custom editor.
assemblyFile
The assembly's file path of the custom editor.
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
public EditorAttribute(string editorTypeName, string assemblyFile, string targetProperty)
Parameters
editorTypeName
The type's name of the custom editor.
assemblyFile
The assembly's file path of the custom editor.
targetProperty
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
public EditorAttribute(string editorTypeName, string assemblyFile, string targetProperty, EditorStyle editorStyle)
Parameters
editorTypeName
The type's name of the custom editor.
assemblyFile
The assembly's file path of the custom editor.
targetProperty
The property of the custom editor that should be used for binding.
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.
EditorType
Gets the type of the custom editor.
TargetProperty
Gets the property of the custom editor that should be used for binding.