EditorAttribute 构造函数

定义

初始化 EditorAttribute 类的新实例。

重载

名称 说明
EditorAttribute()

使用默认编辑器(不是编辑器)初始化类的新实例 EditorAttribute

EditorAttribute(String, String)

使用编辑器的类型名称和基类型名称初始化类的新实例 EditorAttribute

EditorAttribute(String, Type)

使用类型名称和基类型初始化类的新实例 EditorAttribute

EditorAttribute(Type, Type)

使用类型和基类型初始化类的新实例 EditorAttribute

EditorAttribute()

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

使用默认编辑器(不是编辑器)初始化类的新实例 EditorAttribute

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

适用于

EditorAttribute(String, String)

Source:
EditorAttribute.cs
Source:
EditorAttribute.cs
Source:
EditorAttribute.cs
Source:
EditorAttribute.cs
Source:
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 的必须派生自或实现基类。

参数 TypebaseTypeName 表示的表示用作查找特定编辑器的键,因为数据类型可以有多个与之关联的编辑器。 这可以是任何类,但通常是 UITypeEditorComponentEditor

适用于

EditorAttribute(String, Type)

Source:
EditorAttribute.cs
Source:
EditorAttribute.cs
Source:
EditorAttribute.cs
Source:
EditorAttribute.cs
Source:
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)

Source:
EditorAttribute.cs
Source:
EditorAttribute.cs
Source:
EditorAttribute.cs
Source:
EditorAttribute.cs
Source:
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 参数用作查找特定编辑器的键,因为数据类型可以有多个与之关联的编辑器。

适用于