EditorAttribute 建構函式

定義

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

多載

EditorAttribute()

使用預設的編輯器 (也就是沒有編輯器),初始化 EditorAttribute 類別的新執行個體。

EditorAttribute(String, String)

使用編輯器的型別名稱和基底型別名稱,初始化 EditorAttribute 類別的新執行個體。

EditorAttribute(String, Type)

使用型別名稱和基底型別,初始化 EditorAttribute 類別的新執行個體。

EditorAttribute(Type, Type)

使用型別和基底型別,初始化 EditorAttribute 類別的新執行個體。

EditorAttribute()

來源:
EditorAttribute.cs
來源:
EditorAttribute.cs
來源:
EditorAttribute.cs

使用預設的編輯器 (也就是沒有編輯器),初始化 EditorAttribute 類別的新執行個體。

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

適用於

EditorAttribute(String, String)

來源:
EditorAttribute.cs
來源:
EditorAttribute.cs
來源:
EditorAttribute.cs

使用編輯器的型別名稱和基底型別名稱,初始化 EditorAttribute 類別的新執行個體。

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

編輯器的完整型別名稱。

baseTypeName
String

基底類別或介面的完整型別名稱,用來做為編輯器的查閱索引鍵。 這個類別必須是或衍生自 UITypeEditor

備註

參數 typeName 的格式必須為 Type.AssemblyQualifiedName

Type由 參數表示的 typeName ,必須衍生自 或實作基類。

Type參數所表示的 是用來尋找特定編輯器的baseTypeName索引鍵,因為數據類型可以有多個與其相關聯的編輯器。 這可以是任何類別,但通常是 UITypeEditorComponentEditor

適用於

EditorAttribute(String, Type)

來源:
EditorAttribute.cs
來源:
EditorAttribute.cs
來源:
EditorAttribute.cs

使用型別名稱和基底型別,初始化 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

Type所表示的 typeName 必須衍生自 或實作基類。

參數 baseType 是用來尋找特定編輯器的索引鍵,因為數據類型可以有多個與其相關聯的編輯器。

適用於

EditorAttribute(Type, Type)

來源:
EditorAttribute.cs
來源:
EditorAttribute.cs
來源:
EditorAttribute.cs

使用型別和基底型別,初始化 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

Type,表示編輯器的型別。

baseType
Type

基底類別或介面的 Type,用來做為編輯器的查閱索引鍵。 這個類別必須是或衍生自 UITypeEditor

備註

Type由 參數表示的 type ,必須衍生自 或實作基類。

參數 baseType 是用來尋找特定編輯器的索引鍵,因為數據類型可以有多個與其相關聯的編輯器。

適用於