System.Drawing.Design.ToolboxItem Members

The members of System.Drawing.Design.ToolboxItem are listed below.

See Also: Inherited members from System.Object

Public Constructors

Initializes a new instance of the System.Drawing.Design.ToolboxItem class.

Initializes a new instance of the System.Drawing.Design.ToolboxItem class that creates the specified type of component.

Public Properties

AssemblyNameSystem.Reflection.AssemblyName.

Gets or sets the name of the assembly that contains the type or types that the toolbox item creates.

BitmapSystem.Drawing.Bitmap.

Gets or sets a bitmap to represent the toolbox item in the toolbox.

Companystring.

Gets or sets the company name for this System.Drawing.Design.ToolboxItem.

[read-only]
ComponentTypestring.

Gets the component type for this System.Drawing.Design.ToolboxItem.

DependentAssembliesSystem.Reflection.AssemblyName[].

Gets or sets the System.Reflection.AssemblyName for the toolbox item.

Descriptionstring.

Gets or sets the description for this System.Drawing.Design.ToolboxItem.

DisplayNamestring.

Gets or sets the display name for the toolbox item.

FilterICollection.

Gets or sets the filter that determines whether the toolbox item can be used on a destination component.

IsTransientbool.

Gets a value indicating whether the toolbox item is transient.

[read-only]
Lockedbool.

Gets a value indicating whether the System.Drawing.Design.ToolboxItem is currently locked.

[read-only]
PropertiesIDictionary.

Gets a dictionary of properties.

TypeNamestring.

Gets or sets the fully qualified name of the type of System.ComponentModel.IComponent that the toolbox item creates when invoked.

[read-only]
Versionstring.

Gets the version for this System.Drawing.Design.ToolboxItem.

Public Methods

CreateComponents() : System.ComponentModel.IComponent[]

Creates the components that the toolbox item is configured to create.

CreateComponents(System.ComponentModel.Design.IDesignerHost) : System.ComponentModel.IComponent[]

Creates the components that the toolbox item is configured to create, using the specified designer host.

CreateComponents(System.ComponentModel.Design.IDesignerHost, IDictionary) : System.ComponentModel.IComponent[]

Creates the components that the toolbox item is configured to create, using the specified designer host and default values.

override
Equals(object) : bool

Determines whether two System.Drawing.Design.ToolboxItem instances are equal.

override
GetHashCode() : int

Returns the hash code for this instance.

GetType(System.ComponentModel.Design.IDesignerHost) : Type

Enables access to the type associated with the toolbox item.

Initialize(Type)

Initializes the current toolbox item with the specified type to create.

Lock()

Locks the toolbox item and prevents changes to its properties.

override
ToString() : string

Returns a string that represents the current System.Drawing.Design.ToolboxItem.

Protected Methods

CheckUnlocked()

Throws an exception if the toolbox item is currently locked.

CreateComponentsCore(System.ComponentModel.Design.IDesignerHost) : System.ComponentModel.IComponent[]

Creates a component or an array of components when the toolbox item is invoked.

CreateComponentsCore(System.ComponentModel.Design.IDesignerHost, IDictionary) : System.ComponentModel.IComponent[]

Creates an array of components when the toolbox item is invoked.

Deserialize(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)

Loads the state of the toolbox item from the specified serialization information object.

FilterPropertyValue(string, object) : object

Filters a property value before returning it.

GetType(System.ComponentModel.Design.IDesignerHost, System.Reflection.AssemblyName, string, bool) : Type

Creates an instance of the specified type, optionally using a specified designer host and assembly name.

OnComponentsCreated(ToolboxComponentsCreatedEventArgs)

Raises the ToolboxItem.ComponentsCreated event.

OnComponentsCreating(ToolboxComponentsCreatingEventArgs)

Raises the ToolboxItem.ComponentsCreating event.

Serialize(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)

Saves the state of the toolbox item to the specified serialization information object.

ValidatePropertyType(string, object, Type, bool)

Validates that an object is of a given type.

ValidatePropertyValue(string, object) : object

Validates a property before it is assigned to the property dictionary.

Public Events

ComponentsCreated

Occurs immediately after components are created.

ComponentsCreating

Occurs when components are about to be created.

Explicitly Implemented Interface Members