EditorAttribute 建構函式

定義

初始化 EditorAttribute 類別的新執行個體。Initializes a new instance of the EditorAttribute class.

多載

EditorAttribute()

使用預設的編輯器 (也就是沒有編輯器),初始化 EditorAttribute 類別的新執行個體。Initializes a new instance of the EditorAttribute class with the default editor, which is no editor.

EditorAttribute(String, String)

使用編輯器的型別名稱和基底型別名稱,初始化 EditorAttribute 類別的新執行個體。Initializes a new instance of the EditorAttribute class with the type name and base type name of the editor.

EditorAttribute(String, Type)

使用型別名稱和基底型別,初始化 EditorAttribute 類別的新執行個體。Initializes a new instance of the EditorAttribute class with the type name and the base type.

EditorAttribute(Type, Type)

使用型別和基底型別,初始化 EditorAttribute 類別的新執行個體。Initializes a new instance of the EditorAttribute class with the type and the base type.

EditorAttribute()

使用預設的編輯器 (也就是沒有編輯器),初始化 EditorAttribute 類別的新執行個體。Initializes a new instance of the EditorAttribute class with the default editor, which is no editor.

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

適用於

EditorAttribute(String, String)

使用編輯器的型別名稱和基底型別名稱,初始化 EditorAttribute 類別的新執行個體。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)

參數

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. 這個類別必須是或衍生自 UITypeEditorThis class must be or derive from UITypeEditor.

備註

typeName參數的格式必須是 Type.AssemblyQualifiedNameThe typeName parameter must be in the Type.AssemblyQualifiedName format.

Type以參數表示的 typeName 必須衍生自或實基類。The Type represented by the typeName parameter must either derive from or implement the base class.

Type參數所代表的 baseTypeName 是用來尋找特定編輯器的索引鍵,因為資料類型可以有多個與其相關聯的編輯器。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. 這可以是任何類別,但通常是 UITypeEditorComponentEditorThis can be any class, but is typically UITypeEditor or ComponentEditor.

適用於

EditorAttribute(String, Type)

使用型別名稱和基底型別,初始化 EditorAttribute 類別的新執行個體。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)

參數

typeName
String

編輯器的完整型別名稱。The fully qualified type name of the editor.

baseType
Type

基底類別或介面的 Type,用來做為編輯器的查閱索引鍵。The Type of the base class or interface to use as a lookup key for the editor. 這個類別必須是或衍生自 UITypeEditorThis class must be or derive from UITypeEditor.

備註

typeName參數的格式必須是 Type.AssemblyQualifiedNameThe typeName parameter must be in the Type.AssemblyQualifiedName format.

由所表示的, Type typeName 必須衍生自或實基類。The Type represented by the typeName must either derive from or implement the base class.

baseType參數是用來尋找特定編輯器的索引鍵,因為資料類型可以有多個與其相關聯的編輯器。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.

適用於

EditorAttribute(Type, Type)

使用型別和基底型別,初始化 EditorAttribute 類別的新執行個體。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)

參數

type
Type

Type,表示編輯器的型別。A Type that represents the type of the editor.

baseType
Type

基底類別或介面的 Type,用來做為編輯器的查閱索引鍵。The Type of the base class or interface to use as a lookup key for the editor. 這個類別必須是或衍生自 UITypeEditorThis class must be or derive from UITypeEditor.

備註

Type以參數表示的 type 必須衍生自或實基類。The Type represented by the type parameter must either derive from or implement the base class.

baseType參數是用來尋找特定編輯器的索引鍵,因為資料類型可以有多個與其相關聯的編輯器。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.

適用於