EditorAttribute 建構函式

定義

初始化 EditorAttribute 類別的新執行個體。

多載

名稱 Description
EditorAttribute()

初始化一個新的類別實例 EditorAttribute ,使用預設編輯器,該編輯器並非編輯器。

EditorAttribute(String, String)

初始化一個新的類別實例 EditorAttribute ,使用編輯器的型別名稱與基底型別名稱。

EditorAttribute(String, Type)

初始化一個帶有類型名稱和基底型態的 EditorAttribute 類別新實例。

EditorAttribute(Type, Type)

初始化一個新的類別實例 EditorAttribute ,包含 類型與基底類型。

EditorAttribute()

初始化一個新的類別實例 EditorAttribute ,使用預設編輯器,該編輯器並非編輯器。

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

適用於

EditorAttribute(String, String)

初始化一個新的類別實例 EditorAttribute ,使用編輯器的型別名稱與基底型別名稱。

public:
 EditorAttribute(System::String ^ typeName, System::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

編輯器的完全限定型別名稱。

baseTypeName
String

基底類別或介面的完整限定型別名稱,作為編輯器的查找鍵。 此類必須是或由 衍生出 UITypeEditor

備註

typeName參數必須符合格式Type.AssemblyQualifiedName

參數typeName所代表的必須Type是從基底類別衍生出來,或是實作。

參數baseTypeName所代表的 被Type用作尋找特定編輯器的鍵,因為同一資料型態可能有多個編輯器相關聯。 這可以是任何類別,但通常是 UITypeEditorComponentEditor

適用於

EditorAttribute(String, Type)

初始化一個帶有類型名稱和基底型態的 EditorAttribute 類別新實例。

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

編輯器的完全限定型別名稱。

baseType
Type

基底類別或介面的一個 Type ,作為編輯器的查找鍵。 此類必須是或由 衍生出 UITypeEditor

備註

typeName參數必須符合格式Type.AssemblyQualifiedName

typeName 所表示的 必須Type是從基底類別衍生出來或實作。

baseType 參數用作尋找特定編輯器的鍵,因為同一資料型別可能與多個編輯器相關聯。

適用於

EditorAttribute(Type, Type)

初始化一個新的類別實例 EditorAttribute ,包含 類型與基底類型。

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

代表編輯器類型的 A Type

baseType
Type

基底類別或介面的一個 Type ,作為編輯器的查找鍵。 此類必須是或由 衍生出 UITypeEditor

備註

參數type所代表的必須Type是從基底類別衍生出來,或是實作。

baseType 參數用作尋找特定編輯器的鍵,因為同一資料型別可能與多個編輯器相關聯。

適用於