Class EditorAttribute
Attribute for specifying a custom editor for a particular property.
Inheritance
Inherited Members
Namespace: Telerik.Windows.Controls.Data.PropertyGrid
Assembly: Telerik.Windows.Controls.Data.dll
Syntax
[AttributeUsage(AttributeTargets.Assembly | AttributeTargets.Module | AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Enum | AttributeTargets.Constructor | AttributeTargets.Method | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Event | AttributeTargets.Interface | AttributeTargets.Parameter | AttributeTargets.Delegate | AttributeTargets.ReturnValue | AttributeTargets.GenericParameter | AttributeTargets.All, Inherited = true, AllowMultiple = false)]
public class EditorAttribute : Attribute, _Attribute
Constructors
EditorAttribute(String, String)
Initializes a new instance of the EditorAttribute class.
Declaration
public EditorAttribute(string editorTypeName, string assemblyFile)
Parameters
System.String
editorTypeName
The type's name of the custom editor. |
System.String
assemblyFile
The assembly's file path of 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
System.String
editorTypeName
The type's name of the custom editor. |
System.String
assemblyFile
The assembly's file path of the custom editor. |
System.String
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
System.String
editorTypeName
The type's name of the custom editor. |
System.String
assemblyFile
The assembly's file path of the custom editor. |
System.String
targetProperty
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, EditorStyle)
Initializes a new instance of the EditorAttribute class.
Declaration
public EditorAttribute(string editorTypeName, string assemblyFile, EditorStyle editorStyle)
Parameters
System.String
editorTypeName
The type's name of the custom editor. |
System.String
assemblyFile
The assembly's file path of the custom editor. |
EditorStyle
editorStyle
The style of the UI component used for hosting the custom editor. |
EditorAttribute(Type)
Initializes a new instance of the EditorAttribute class.
Declaration
public EditorAttribute(Type editorType)
Parameters
System.Type
editorType
The type of the custom editor. |
EditorAttribute(Type, String)
Initializes a new instance of the EditorAttribute class.
Declaration
public EditorAttribute(Type editorType, string targetProperty)
Parameters
System.Type
editorType
The type of the custom editor. |
System.String
targetProperty
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
public EditorAttribute(Type editorType, string targetProperty, EditorStyle editorStyle)
Parameters
System.Type
editorType
The type of the custom editor. |
System.String
targetProperty
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(Type, EditorStyle)
Initializes a new instance of the EditorAttribute class.
Declaration
public EditorAttribute(Type editorType, EditorStyle editorStyle)
Parameters
System.Type
editorType
The type of the custom editor. |
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
public EditorStyle EditorStyle { get; }
Property Value
EditorStyle
|
EditorType
Gets the type of the custom editor.
Declaration
public Type EditorType { get; }
Property Value
System.Type
|
TargetProperty
Gets the property of the custom editor that should be used for binding.
Declaration
public string TargetProperty { get; }
Property Value
System.String
|