System.Drawing.Design.ToolboxItem Class

Provides a base implementation of a toolbox item.

See Also: ToolboxItem Members

Syntax

public class ToolboxItem : System.Runtime.Serialization.ISerializable

Remarks

System.Drawing.Design.ToolboxItem is a base class for toolbox items that can be displayed in the toolbox of a design-time environment. A toolbox item typically represents a component to create when invoked on a design mode document. The System.Drawing.Design.ToolboxItem class provides the methods and properties needed to provide the toolbox with the display properties for the toolbox item, to create a component or components when used, and to serialize and deserialize itself for persistence within the toolbox database.

An instance of the System.Drawing.Design.ToolboxItem class can be configured with a name, bitmap, and type to create, without creating a class that derives from System.Drawing.Design.ToolboxItem. The System.Drawing.Design.ToolboxItem class also provides a base class for custom toolbox item implementations. A custom System.Drawing.Design.ToolboxItem can create multiple components. To implement a custom toolbox item, you must derive from System.Drawing.Design.ToolboxItem and override the ToolboxItem.CreateComponentsCore(System.ComponentModel.Design.IDesignerHost), ToolboxItem.Serialize(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext), and ToolboxItem.Deserialize(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext) methods.

The following properties and methods must be configured for a System.Drawing.Design.ToolboxItem to function correctly:

Requirements

Namespace: System.Drawing.Design
Assembly: System.Drawing (in System.Drawing.dll)
Assembly Versions: 1.0.3300.0, 1.0.5000.0, 2.0.0.0