ToolboxItemAttribute 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
初始化类的新实例 ToolboxItemAttribute ,并指定是否使用默认初始化值。
重载
| 名称 | 说明 |
|---|---|
| ToolboxItemAttribute(Boolean) |
初始化类的新实例 ToolboxItemAttribute ,并指定是否使用默认初始化值。 |
| ToolboxItemAttribute(String) |
使用类型的指定名称初始化类的新实例 ToolboxItemAttribute 。 |
| ToolboxItemAttribute(Type) |
使用工具箱项的指定类型初始化类的新实例 ToolboxItemAttribute 。 |
ToolboxItemAttribute(Boolean)
- Source:
- ToolboxItemAttribute.cs
- Source:
- ToolboxItemAttribute.cs
- Source:
- ToolboxItemAttribute.cs
- Source:
- ToolboxItemAttribute.cs
- Source:
- ToolboxItemAttribute.cs
初始化类的新实例 ToolboxItemAttribute ,并指定是否使用默认初始化值。
public:
ToolboxItemAttribute(bool defaultType);
public ToolboxItemAttribute(bool defaultType);
new System.ComponentModel.ToolboxItemAttribute : bool -> System.ComponentModel.ToolboxItemAttribute
Public Sub New (defaultType As Boolean)
参数
- defaultType
- Boolean
true 为默认类型创建工具箱项属性; false 若要关联此属性的默认工具箱项支持,则为 。
注解
默认情况下,属性 ToolboxItemType 设置为 ToolboxItem.
适用于
ToolboxItemAttribute(String)
- Source:
- ToolboxItemAttribute.cs
- Source:
- ToolboxItemAttribute.cs
- Source:
- ToolboxItemAttribute.cs
- Source:
- ToolboxItemAttribute.cs
- Source:
- ToolboxItemAttribute.cs
使用类型的指定名称初始化类的新实例 ToolboxItemAttribute 。
public:
ToolboxItemAttribute(System::String ^ toolboxItemTypeName);
public ToolboxItemAttribute(string toolboxItemTypeName);
new System.ComponentModel.ToolboxItemAttribute : string -> System.ComponentModel.ToolboxItemAttribute
Public Sub New (toolboxItemTypeName As String)
参数
- toolboxItemTypeName
- String
工具箱项的类型和包含该类型的程序集的名称。
注解
此构造函数要求toolboxItemTypeName参数采用项类型的>窗体<名称、<程序集>名称(例如 System.Drawing.Design.ToolboxItem、System.Drawing.Design)。
适用于
ToolboxItemAttribute(Type)
- Source:
- ToolboxItemAttribute.cs
- Source:
- ToolboxItemAttribute.cs
- Source:
- ToolboxItemAttribute.cs
- Source:
- ToolboxItemAttribute.cs
- Source:
- ToolboxItemAttribute.cs
使用工具箱项的指定类型初始化类的新实例 ToolboxItemAttribute 。
public:
ToolboxItemAttribute(Type ^ toolboxItemType);
public ToolboxItemAttribute(Type toolboxItemType);
new System.ComponentModel.ToolboxItemAttribute : Type -> System.ComponentModel.ToolboxItemAttribute
Public Sub New (toolboxItemType As Type)
参数
- toolboxItemType
- Type
工具箱项的类型。