ExtenderControlToolboxItem 类

定义

提供确定哪些目标控件可以通过工具箱中的特定扩展程序控件进行扩展的方法。Provides a way to determine which target controls can be extended by a particular extender control in the toolbox.

public ref class ExtenderControlToolboxItem : System::Web::UI::Design::WebControlToolboxItem
[System.Serializable]
public class ExtenderControlToolboxItem : System.Web.UI.Design.WebControlToolboxItem
[<System.Serializable>]
type ExtenderControlToolboxItem = class
    inherit WebControlToolboxItem
Public Class ExtenderControlToolboxItem
Inherits WebControlToolboxItem
继承
ExtenderControlToolboxItem
属性

注解

GetTargetControlTypes方法返回目标类型的集合。The GetTargetControlTypes method returns the collection of target types. 使用字典对集合进行缓存以提高性能 PropertiesThe collection is cached for performance by using the Properties dictionary.

如果编写一个实现但不是 IExtenderControl 从派生的扩展程序控件 ExtenderControl ,请在控件的属性中指定此类型 ToolboxItemAttributeIf you write an extender control that implements IExtenderControl, but that does not derive from ExtenderControl, specify this type in the ToolboxItemAttribute attribute of your control.

构造函数

ExtenderControlToolboxItem()

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

ExtenderControlToolboxItem(SerializationInfo, StreamingContext)

使用指定的参数初始化 ExtenderControlToolboxItem 类的新实例。Initializes a new instance of the ExtenderControlToolboxItem class by using the specified parameters.

ExtenderControlToolboxItem(Type)

使用指定的类型初始化 ExtenderControlToolboxItem 类的新实例。Initializes a new instance of the ExtenderControlToolboxItem class by using the specified type.

属性

AssemblyName

获取或者设置程序集的名称,该程序集中包含工具箱项创建的一个或多个类型。Gets or sets the name of the assembly that contains the type or types that the toolbox item creates.

(继承自 ToolboxItem)
Bitmap

获取或设置表示工具箱中的工具箱项的位图。Gets or sets a bitmap to represent the toolbox item in the toolbox.

(继承自 ToolboxItem)
Company

获取或设置此 ToolboxItem 的公司名称。Gets or sets the company name for this ToolboxItem.

(继承自 ToolboxItem)
ComponentType

获取此 ToolboxItem 的组件类型。Gets the component type for this ToolboxItem.

(继承自 ToolboxItem)
DependentAssemblies

获取或设置工具箱项的 AssemblyNameGets or sets the AssemblyName for the toolbox item.

(继承自 ToolboxItem)
Description

获取或设置此 ToolboxItem 的说明。Gets or sets the description for this ToolboxItem.

(继承自 ToolboxItem)
DisplayName

获取或设置此工具箱项的显示名称。Gets or sets the display name for the toolbox item.

(继承自 ToolboxItem)
Filter

获取或设置确定工具箱项是否可以用于目标组件的筛选器。Gets or sets the filter that determines whether the toolbox item can be used on a destination component.

(继承自 ToolboxItem)
IsTransient

获取一个值,该值指示工具箱项是否为临时工具箱项。Gets a value indicating whether the toolbox item is transient.

(继承自 ToolboxItem)
Locked

获取一个值,该值指示 ToolboxItem 当前是否处于锁定状态。Gets a value indicating whether the ToolboxItem is currently locked.

(继承自 ToolboxItem)
OriginalBitmap

获取或设置将在工具箱中用于此项的原始位图。Gets or sets the original bitmap that will be used in the toolbox for this item.

(继承自 ToolboxItem)
Properties

获取属性的字典。Gets a dictionary of properties.

(继承自 ToolboxItem)
TypeName

获取或设置 IComponent 类型的完全限定名,调用工具箱项将由工具箱创建该名称。Gets or sets the fully qualified name of the type of IComponent that the toolbox item creates when invoked.

(继承自 ToolboxItem)
Version

获取此 ToolboxItem 的版本。Gets the version for this ToolboxItem.

(继承自 ToolboxItem)

方法

CheckUnlocked()

如果工具箱项当前被锁定,则引发异常。Throws an exception if the toolbox item is currently locked.

(继承自 ToolboxItem)
CreateComponents()

创建工具箱项的配置中指定要创建的组件。Creates the components that the toolbox item is configured to create.

(继承自 ToolboxItem)
CreateComponents(IDesignerHost)

使用指定的设计器宿主创建工具箱项的配置中指定要创建的组件。Creates the components that the toolbox item is configured to create, using the specified designer host.

(继承自 ToolboxItem)
CreateComponents(IDesignerHost, IDictionary)

使用指定的设计器宿主和默认值创建工具箱项的配置中指定要创建的组件。Creates the components that the toolbox item is configured to create, using the specified designer host and default values.

(继承自 ToolboxItem)
CreateComponentsCore(IDesignerHost)

创建此 ToolboxItem 所包含的每个类型的对象,并将这些对象添加到指定的设计器。Creates objects from each type contained in this ToolboxItem, and adds them to the specified designer.

(继承自 WebControlToolboxItem)
CreateComponentsCore(IDesignerHost, IDictionary)

调用工具箱项时创建组件数组。Creates an array of components when the toolbox item is invoked.

(继承自 ToolboxItem)
Deserialize(SerializationInfo, StreamingContext)

从指定的序列化信息对象中加载工具箱项的状态。Loads the state of the toolbox item from the specified serialization information object.

(继承自 WebControlToolboxItem)
Equals(Object)

确定两个 ToolboxItem 实例是否相等。Determines whether two ToolboxItem instances are equal.

(继承自 ToolboxItem)
FilterPropertyValue(String, Object)

在返回属性值之前先对其进行筛选。Filters a property value before returning it.

(继承自 ToolboxItem)
GetHashCode()

返回此实例的哈希代码。Returns the hash code for this instance.

(继承自 ToolboxItem)
GetTargetControlTypes(IDesignerHost)

返回目标类型的集合。Returns the collection of target types.

GetToolAttributeValue(IDesignerHost, Type)

获取工具箱项的指定类型特性的值。Gets the value of the specified type of attribute of the toolbox item.

(继承自 WebControlToolboxItem)
GetToolHtml(IDesignerHost)

获取工具所创建的 Web 控件的 HTML。Gets the HTML for the Web control that the tool creates.

(继承自 WebControlToolboxItem)
GetToolType(IDesignerHost)

获取此工具箱项的类型。Gets the type of this toolbox item.

(继承自 WebControlToolboxItem)
GetType()

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

(继承自 Object)
GetType(IDesignerHost)

允许访问与工具箱项关联的类型。Enables access to the type associated with the toolbox item.

(继承自 ToolboxItem)
GetType(IDesignerHost, AssemblyName, String, Boolean)

创建指定类型的实例(可以使用指定的设计器宿主和程序集名称)。Creates an instance of the specified type, optionally using a specified designer host and assembly name.

(继承自 ToolboxItem)
Initialize(Type)

使用指定类型预先填充目标类型缓存项。Pre-fills the target-type cache entry with the specified type.

Lock()

锁定工具箱项,防止更改其属性。Locks the toolbox item and prevents changes to its properties.

(继承自 ToolboxItem)
MemberwiseClone()

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

(继承自 Object)
OnComponentsCreated(ToolboxComponentsCreatedEventArgs)

引发 ComponentsCreated 事件。Raises the ComponentsCreated event.

(继承自 ToolboxItem)
OnComponentsCreating(ToolboxComponentsCreatingEventArgs)

引发 ComponentsCreating 事件。Raises the ComponentsCreating event.

(继承自 ToolboxItem)
Serialize(SerializationInfo, StreamingContext)

将此工具箱项的状态保存到指定的序列化信息对象中。Saves the state of the toolbox item to the specified serialization information object.

(继承自 WebControlToolboxItem)
ToString()

返回表示当前 ToolboxItem 的一个StringReturns a String that represents the current ToolboxItem.

(继承自 ToolboxItem)
ValidatePropertyType(String, Object, Type, Boolean)

验证对象是否属于给定类型。Validates that an object is of a given type.

(继承自 ToolboxItem)
ValidatePropertyValue(String, Object)

在将属性分配给属性字典前先对其进行验证。Validates a property before it is assigned to the property dictionary.

(继承自 ToolboxItem)

事件

ComponentsCreated

组件创建后立即发生。Occurs immediately after components are created.

(继承自 ToolboxItem)
ComponentsCreating

即将创建组件时发生。Occurs when components are about to be created.

(继承自 ToolboxItem)

显式接口实现

ISerializable.GetObjectData(SerializationInfo, StreamingContext)

有关此成员的说明,请参见 GetObjectData(SerializationInfo, StreamingContext) 方法。For a description of this member, see the GetObjectData(SerializationInfo, StreamingContext) method.

(继承自 ToolboxItem)

适用于