ערוך

שתף באמצעות


EditorAttribute Constructors

Definition

Initializes a new instance of the EditorAttribute class.

Overloads

EditorAttribute()

Initializes a new instance of the EditorAttribute class with the default editor, which is no editor.

EditorAttribute(String, String)

Initializes a new instance of the EditorAttribute class with the type name and base type name of the editor.

EditorAttribute(String, Type)

Initializes a new instance of the EditorAttribute class with the type name and the base type.

EditorAttribute(Type, Type)

Initializes a new instance of the EditorAttribute class with the type and the base type.

EditorAttribute()

Source:
EditorAttribute.cs
Source:
EditorAttribute.cs
Source:
EditorAttribute.cs

Initializes a new instance of the EditorAttribute class with the default editor, which is no editor.

public:
 EditorAttribute();
public EditorAttribute ();
Public Sub New ()

Applies to

EditorAttribute(String, String)

Source:
EditorAttribute.cs
Source:
EditorAttribute.cs
Source:
EditorAttribute.cs

Initializes a new instance of the EditorAttribute class with the type name and base type name of the editor.

public:
 EditorAttribute(System::String ^ typeName, System::String ^ baseTypeName);
public EditorAttribute (string typeName, string? baseTypeName);
public EditorAttribute (string typeName, string baseTypeName);
new System.ComponentModel.EditorAttribute : string * string -> System.ComponentModel.EditorAttribute
Public Sub New (typeName As String, baseTypeName As String)

Parameters

typeName
String

The fully qualified type name of the editor.

baseTypeName
String

The fully qualified type name of the base class or interface to use as a lookup key for the editor. This class must be or derive from UITypeEditor.

Remarks

The typeName parameter must be in the Type.AssemblyQualifiedName format.

The Type represented by the typeName parameter must either derive from or implement the base class.

The Type represented by the baseTypeName parameter is used as a key to find a particular editor, because a data type can have more than one editor associated with it. This can be any class, but is typically UITypeEditor or ComponentEditor.

Applies to

EditorAttribute(String, Type)

Source:
EditorAttribute.cs
Source:
EditorAttribute.cs
Source:
EditorAttribute.cs

Initializes a new instance of the EditorAttribute class with the type name and the base type.

public:
 EditorAttribute(System::String ^ typeName, Type ^ baseType);
public EditorAttribute (string typeName, Type baseType);
new System.ComponentModel.EditorAttribute : string * Type -> System.ComponentModel.EditorAttribute
Public Sub New (typeName As String, baseType As Type)

Parameters

typeName
String

The fully qualified type name of the editor.

baseType
Type

The Type of the base class or interface to use as a lookup key for the editor. This class must be or derive from UITypeEditor.

Remarks

The typeName parameter must be in the Type.AssemblyQualifiedName format.

The Type represented by the typeName must either derive from or implement the base class.

The baseType parameter is used as a key to find a particular editor, because a data type can have more than one editor associated with it.

Applies to

EditorAttribute(Type, Type)

Source:
EditorAttribute.cs
Source:
EditorAttribute.cs
Source:
EditorAttribute.cs

Initializes a new instance of the EditorAttribute class with the type and the base type.

public:
 EditorAttribute(Type ^ type, Type ^ baseType);
public EditorAttribute (Type type, Type baseType);
new System.ComponentModel.EditorAttribute : Type * Type -> System.ComponentModel.EditorAttribute
Public Sub New (type As Type, baseType As Type)

Parameters

type
Type

A Type that represents the type of the editor.

baseType
Type

The Type of the base class or interface to use as a lookup key for the editor. This class must be or derive from UITypeEditor.

Remarks

The Type represented by the type parameter must either derive from or implement the base class.

The baseType parameter is used as a key to find a particular editor, because a data type can have more than one editor associated with it.

Applies to