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:
[AttributeUsage(AttributeTargets.All, Inherited = true, AllowMultiple = false)]
public class EditorAttribute : Attribute
Inheritance: objectAttributeEditorAttribute
Inherited Members
Constructors
Initializes a new instance of the EditorAttribute class.
public EditorAttribute(string editorTypeName, string assemblyFile, EditorStyle editorStyle)
The type's name of the custom editor.
assemblyFilestringThe assembly's file path of the custom editor.
editorStyleEditorStyleThe style of the UI component used for hosting the custom editor.
Initializes a new instance of the EditorAttribute class.
public EditorAttribute(string editorTypeName, string assemblyFile, string targetProperty, EditorStyle editorStyle)
The type's name of the custom editor.
assemblyFilestringThe assembly's file path of the custom editor.
targetPropertystringThe property of the custom editor that should be used for binding.
editorStyleEditorStyleThe style of the UI component used for hosting the custom editor.
Initializes a new instance of the EditorAttribute class.
public EditorAttribute(string editorTypeName, string assemblyFile, string targetProperty)
The type's name of the custom editor.
assemblyFilestringThe assembly's file path of the custom editor.
targetPropertystringThe property of the custom editor that should be used for binding.
Initializes a new instance of the EditorAttribute class.
Initializes a new instance of the EditorAttribute class.
public EditorAttribute(Type editorType, EditorStyle editorStyle)
The type of the custom editor.
editorStyleEditorStyleThe style of the UI component used for hosting the custom editor.
Initializes a new instance of the EditorAttribute class.
public EditorAttribute(Type editorType, string targetProperty, EditorStyle editorStyle)
The type of the custom editor.
targetPropertystringThe property of the custom editor that should be used for binding.
editorStyleEditorStyleThe style of the UI component used for hosting the custom editor.
Initializes a new instance of the EditorAttribute class.
Initializes a new instance of the EditorAttribute class.
Properties
Gets the style of the UI component used for hosting the custom editor.
public EditorStyle EditorStyle { get; }
Gets the type of the custom editor.
public Type EditorType { get; }
Gets the property of the custom editor that should be used for binding.
public string TargetProperty { get; }