ToolboxItemWrapper 类

定义

表示一个包装,用于在实际 ToolboxItem 实例和工具表示方式之间建立链接,以及为工具箱项的分类添加支持。Represents a wrapper used to establish link between an actual ToolboxItem instance and the tool representation, as well as add support for categorization of toolbox items. 此类是 sealed,因此不能被继承。This class is sealed, so it cannot be inherited.

public ref class ToolboxItemWrapper sealed : System::ComponentModel::INotifyPropertyChanged
public sealed class ToolboxItemWrapper : System.ComponentModel.INotifyPropertyChanged
type ToolboxItemWrapper = class
    interface INotifyPropertyChanged
Public NotInheritable Class ToolboxItemWrapper
Implements INotifyPropertyChanged
继承
ToolboxItemWrapper
实现

注解

Windows 工作流设计器Windows Workflow Designer之外重新承载 Visual Studio 2010Visual Studio 2010 时,此包装类为工具箱项的分类提供支持。This wrapper class provides support for the categorization of toolbox items when re-hosting the Windows 工作流设计器Windows Workflow Designeroutside of Visual Studio 2010Visual Studio 2010.

构造函数

ToolboxItemWrapper()

初始化 ToolboxItemWrapper 类的新实例。Initializes a new instance of the ToolboxItemWrapper class.

ToolboxItemWrapper(String, String, String, String)

用工具、程序集、位图和显示的指定名称来初始化 ToolboxItemWrapper 类的新实例。Initializes a new instance of the ToolboxItemWrapper class with specified names for the tool, assembly, bitmap, and display.

ToolboxItemWrapper(Type)

用工具的类型来初始化 ToolboxItemWrapper 类的新实例。Initializes a new instance of the ToolboxItemWrapper class with the type of the tool.

ToolboxItemWrapper(Type, String)

用工具的类型和指定的显示名称来初始化 ToolboxItemWrapper 类的新实例。Initializes a new instance of the ToolboxItemWrapper class with the type of the tool and a specified display name.

ToolboxItemWrapper(Type, String, String)

用工具的类型以及位图和显示的指定名称来初始化 ToolboxItemWrapper 类的新实例。Initializes a new instance of the ToolboxItemWrapper class with the type of the tool and specified names for the bitmap and display.

属性

AssemblyName

获取或设置工具箱项的程序集名称。Gets or sets the assembly name for the toolbox item.

Bitmap

获取与当前对象包装的 ToolboxItem 相关联的位图。Gets the bitmap associated with the ToolboxItem wrapped by the current object.

BitmapName

获取或设置位图名称。Gets or sets the bitmap name.

DisplayName

获取或设置显示名称。Gets or sets the display name.

IsValid

获取一个值,指示此 ToolboxItem 是否有效。Gets a value that indicates whether this ToolboxItem is valid.

ToolName

获取或设置工具的名称。Gets or sets the name of the tool.

Type

获取 ToolboxItem 的类型。Gets the type of the ToolboxItem.

方法

Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
GetHashCode()

作为默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
ToString()

返回表示当前对象的字符串。Returns a string that represents the current object.

事件

PropertyChanged

在属性更改时发生的事件。An event that occurs when a property is changed.

适用于