ToolboxService Class
Provides a default implementation of the IToolboxService interface.
Assembly: System.Drawing.Design (in System.Drawing.Design.dll)
The ToolboxService type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | CategoryNames | Gets a collection of strings depicting available categories of the toolbox. |
![]() | SelectedCategory | Gets or sets the name of the currently selected category. |
![]() | SelectedItemContainer | Gets or sets the currently selected item container. |
| Name | Description | |
|---|---|---|
![]() | CreateItemContainer(IDataObject) | Creates a new toolbox item container from a saved data object. |
![]() | CreateItemContainer(ToolboxItem, IDesignerHost) | Creates a new toolbox item container from a toolbox item. |
![]() | Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() | FilterChanged | Occurs when the toolbox service detects that the active designer’s toolbox item filter has changed. |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetItemContainers() | Returns an IList containing all items on the toolbox. |
![]() | GetItemContainers(String) | Returns an IList containing all items in a given category. |
![]() ![]() | GetToolboxItem(Type) | Returns a toolbox item for a given type. |
![]() ![]() | GetToolboxItem(Type, Boolean) | Returns a toolbox item for a given type. |
![]() ![]() | GetToolboxItems(AssemblyName) | Returns an ICollection of ToolboxItem objects for the given assembly. |
![]() ![]() | GetToolboxItems(Assembly, String) | Returns an ICollection containing all the toolbox items in the given assembly. |
![]() ![]() | GetToolboxItems(AssemblyName, Boolean) | Returns an ICollection of ToolboxItem objects for the given assembly. |
![]() ![]() | GetToolboxItems(Assembly, String, Boolean) | Returns an ICollection of ToolboxItem objects for the given assembly. |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | IsItemContainer | Returns a value indicating whether the given data object represents an item container. |
![]() | IsItemContainerSupported | Determines whether the toolbox item container is supported by the given designer host. |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | Refresh | Refreshes the state of the toolbox items. |
![]() | SelectedItemContainerUsed | Receives a call from the toolbox service when a user reports that a selected toolbox item has been used. |
![]() | SetCursor | Sets the current application's cursor to a cursor that represents the currently selected tool. |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
![]() ![]() | UnloadToolboxItems | Unloads any assemblies that were locked as a result of calling the GetToolboxItems method. |
| Name | Description | |
|---|---|---|
![]() ![]() | IComponentDiscoveryService::GetComponentTypes | Gets the list of available component types. |
![]() ![]() | IToolboxService::AddCreator(ToolboxItemCreatorCallback, String) | For a description of this member, see the IToolboxService::AddCreator method. |
![]() ![]() | IToolboxService::AddCreator(ToolboxItemCreatorCallback, String, IDesignerHost) | For a description of this member, see the IToolboxService::AddCreator method. |
![]() ![]() | IToolboxService::AddLinkedToolboxItem(ToolboxItem, IDesignerHost) | For a description of this member, see the IToolboxService::AddLinkedToolboxItem method. |
![]() ![]() | IToolboxService::AddLinkedToolboxItem(ToolboxItem, String, IDesignerHost) | For a description of this member, see the IToolboxService::AddLinkedToolboxItemmethod. |
![]() ![]() | IToolboxService::AddToolboxItem(ToolboxItem) | For a description of this member, see the IToolboxService::AddToolboxItem method. |
![]() ![]() | IToolboxService::AddToolboxItem(ToolboxItem, String) | For a description of this member, see the IToolboxService::AddToolboxItem method. |
![]() ![]() | IToolboxService::CategoryNames | For a description of this member, see the IToolboxService::CategoryNames property. |
![]() ![]() | IToolboxService::DeserializeToolboxItem(Object) | For a description of this member, see the IToolboxService::DeserializeToolboxItem method. |
![]() ![]() | IToolboxService::DeserializeToolboxItem(Object, IDesignerHost) | For a description of this member, see the IToolboxService::DeserializeToolboxItem method. |
![]() ![]() | IToolboxService::GetSelectedToolboxItem() | For a description of this member, see the IToolboxService::GetSelectedToolboxItem method. |
![]() ![]() | IToolboxService::GetSelectedToolboxItem(IDesignerHost) | For a description of this member, see the IToolboxService::GetSelectedToolboxItem method. |
![]() ![]() | IToolboxService::GetToolboxItems() | Gets the entire collection of toolbox items from the toolbox. |
![]() ![]() | IToolboxService::GetToolboxItems(IDesignerHost) | Gets the collection of toolbox items that are associated with the specified designer host from the toolbox. |
![]() ![]() | IToolboxService::GetToolboxItems(String) | Gets a collection of toolbox items from the toolbox that match the specified category. |
![]() ![]() | IToolboxService::GetToolboxItems(String, IDesignerHost) | Gets the collection of toolbox items that are associated with the specified designer host and category from the toolbox. |
![]() ![]() | IToolboxService::IsSupported(Object, ICollection) | Gets a value indicating whether the specified object, which represents a serialized toolbox item, matches the specified attributes. |
![]() ![]() | IToolboxService::IsSupported(Object, IDesignerHost) | Gets a value indicating whether the specified object, which represents a serialized toolbox item, can be used by the specified designer host. |
![]() ![]() | IToolboxService::IsToolboxItem(Object) | Gets a value indicating whether the specified object is a serialized toolbox item. |
![]() ![]() | IToolboxService::IsToolboxItem(Object, IDesignerHost) | Gets a value indicating whether the specified object is a serialized toolbox item byusing the specified designer host. |
![]() ![]() | IToolboxService::Refresh | Refreshes the state of the toolbox items. |
![]() ![]() | IToolboxService::RemoveCreator(String) | Removes a previously added toolbox item creator of the specified data format. |
![]() ![]() | IToolboxService::RemoveCreator(String, IDesignerHost) | Removes a previously added toolbox creator that is associated with the specified data format and the specified designer host. |
![]() ![]() | IToolboxService::RemoveToolboxItem(ToolboxItem) | Removes the specified toolbox item from the toolbox. |
![]() ![]() | IToolboxService::RemoveToolboxItem(ToolboxItem, String) | Removes the specified toolbox item from the toolbox. |
![]() ![]() | IToolboxService::SelectedCategory | For a description of this member, see the IToolboxService::SelectedCategory property. |
![]() ![]() | IToolboxService::SelectedToolboxItemUsed | Notifies the toolbox service that the selected tool has been used. |
![]() ![]() | IToolboxService::SerializeToolboxItem | Gets a serializable object that represents the specified toolbox item. |
![]() ![]() | IToolboxService::SetCursor | Sets the current application's cursor to a cursor that represents the currently selected tool. |
![]() ![]() | IToolboxService::SetSelectedToolboxItem | Selects the specified toolbox item. |
The ToolboxService class is a partial implementation of the IToolboxService interface. To use this implementation you must derive from this class and implement the abstract methods. Once implemented, you may add this class to your designer application's service container. There should be one toolbox service for each designer application.
ToolboxService provides much of the complex logic of creating a toolbox service, but requires that you define the storage containers for categories and items. This allows for simple toolboxes or very complex ones.
- NamedPermissionSet
for full access to system resources. Demand values: LinkDemand, InheritanceDemand. Associated state: FullTrust
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.

