Encapsulates a ToolboxItem.
Assembly: System.Drawing.Design (in System.Drawing.Design.dll)
Thetype exposes the following members.
|ToolboxItemContainer(IDataObject)||Initializes a new instance of the class from a System.Windows.Forms.IDataObject.|
|ToolboxItemContainer(ToolboxItem)||Initializes a new instance of the class from a ToolboxItem.|
|ToolboxItemContainer(SerializationInfo, StreamingContext)||Initializes a new instance of the class from a serialization stream.|
|Equals||Determines whether two instances are equal. (Overrides Object.Equals(Object).)|
|Finalize||Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)|
|GetFilter||Returns a collection of ToolboxItemFilterAttribute objects that represent the current filter for the ToolboxItem.|
|GetHashCode||Returns the hash code for this instance. (Overrides Object.GetHashCode().)|
|GetObjectData||Saves the serialization state for the object.|
|GetToolboxItem||Returns the ToolboxItem contained in the .|
|GetType||Gets the Type of the current instance. (Inherited from Object.)|
|MemberwiseClone||Creates a shallow copy of the current Object. (Inherited from Object.)|
|ToString||Returns a string that represents the current object. (Inherited from Object.)|
|UpdateFilter||Merges the container's filter with the filter from the given item.|
is a simple class that encapsulates a ToolboxItem for efficiency. By having a single class that is always loaded, you can defer the loading of the ToolboxItem until it is needed. Because new classes can be derived from ToolboxItem, you could load a ToolboxItem that could, in turn, load an assembly that is not already in memory. For a large collection of ToolboxItem objects, this could cause a large number of assemblies to be loaded, which decreases performance. Instead, the toolbox service deals only with objects and retrieves their contained ToolboxItem only when necessary.
The is designed to hold any cached data from the ToolboxItem. The default implementation only holds the filter of the ToolboxItem, but deriving classes may choose to cache the name, image, and other information. objects support two forms of serialization: they can be serialized through standard runtime serialization, and they can also load and save themselves from a System.Windows.Forms.IDataObject. The former provides a very easy way to save objects to a persistent storage. The latter provides a way to integrate objects with mixed data storage formats.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.