ToolboxService Class

 

Provides a default implementation of the IToolboxService interface.

Namespace:   System.Drawing.Design
Assembly:  System.Drawing.Design (in System.Drawing.Design.dll)

System.Object
  System.Drawing.Design.ToolboxService

[SecurityCriticalAttribute]
public abstract class ToolboxService : IToolboxService, IComponentDiscoveryService

NameDescription
System_CAPS_protmethodToolboxService()

Initializes a new instance of the ToolboxService class.

NameDescription
System_CAPS_protpropertyCategoryNames

Gets a collection of strings depicting available categories of the toolbox.

System_CAPS_protpropertySelectedCategory

Gets or sets the name of the currently selected category.

System_CAPS_protpropertySelectedItemContainer

Gets or sets the currently selected item container.

NameDescription
System_CAPS_protmethodCreateItemContainer(IDataObject)

Creates a new toolbox item container from a saved data object.

System_CAPS_protmethodCreateItemContainer(ToolboxItem, IDesignerHost)

Creates a new toolbox item container from a toolbox item.

System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodFilterChanged()

Occurs when the toolbox service detects that the active designer’s toolbox item filter has changed.

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_protmethodGetItemContainers()

Returns an IList containing all items on the toolbox.

System_CAPS_protmethodGetItemContainers(String)

Returns an IList containing all items in a given category.

System_CAPS_pubmethodSystem_CAPS_staticGetToolboxItem(Type)

Returns a toolbox item for a given type.

System_CAPS_pubmethodSystem_CAPS_staticGetToolboxItem(Type, Boolean)

Returns a toolbox item for a given type.

System_CAPS_pubmethodSystem_CAPS_staticGetToolboxItems(Assembly, String)

Returns an ICollection containing all the toolbox items in the given assembly.

System_CAPS_pubmethodSystem_CAPS_staticGetToolboxItems(Assembly, String, Boolean)

Returns an ICollection of ToolboxItem objects for the given assembly.

System_CAPS_pubmethodSystem_CAPS_staticGetToolboxItems(AssemblyName)

Returns an ICollection of ToolboxItem objects for the given assembly.

System_CAPS_pubmethodSystem_CAPS_staticGetToolboxItems(AssemblyName, Boolean)

Returns an ICollection of ToolboxItem objects for the given assembly.

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_protmethodIsItemContainer(IDataObject, IDesignerHost)

Returns a value indicating whether the given data object represents an item container.

System_CAPS_protmethodIsItemContainerSupported(ToolboxItemContainer, IDesignerHost)

Determines whether the toolbox item container is supported by the given designer host.

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_protmethodRefresh()

Refreshes the state of the toolbox items.

System_CAPS_protmethodSelectedItemContainerUsed()

Receives a call from the toolbox service when a user reports that a selected toolbox item has been used.

System_CAPS_protmethodSetCursor()

Sets the current application's cursor to a cursor that represents the currently selected tool.

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

System_CAPS_pubmethodSystem_CAPS_staticUnloadToolboxItems()

Unloads any assemblies that were locked as a result of calling the GetToolboxItems method.

NameDescription
System_CAPS_pubinterfaceSystem_CAPS_privmethodIComponentDiscoveryService.GetComponentTypes(IDesignerHost, Type)

Gets the list of available component types.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIToolboxService.AddCreator(ToolboxItemCreatorCallback, String)

For a description of this member, see the IToolboxService.AddCreator method.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIToolboxService.AddCreator(ToolboxItemCreatorCallback, String, IDesignerHost)

For a description of this member, see the IToolboxService.AddCreator method.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIToolboxService.AddLinkedToolboxItem(ToolboxItem, IDesignerHost)

For a description of this member, see the IToolboxService.AddLinkedToolboxItem method.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIToolboxService.AddLinkedToolboxItem(ToolboxItem, String, IDesignerHost)

For a description of this member, see the IToolboxService.AddLinkedToolboxItemmethod.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIToolboxService.AddToolboxItem(ToolboxItem)

For a description of this member, see the IToolboxService.AddToolboxItem method.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIToolboxService.AddToolboxItem(ToolboxItem, String)

For a description of this member, see the IToolboxService.AddToolboxItem method.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIToolboxService.DeserializeToolboxItem(Object)

For a description of this member, see the IToolboxService.DeserializeToolboxItem method.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIToolboxService.DeserializeToolboxItem(Object, IDesignerHost)

For a description of this member, see the IToolboxService.DeserializeToolboxItem method.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIToolboxService.GetSelectedToolboxItem()

For a description of this member, see the IToolboxService.GetSelectedToolboxItem method.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIToolboxService.GetSelectedToolboxItem(IDesignerHost)

For a description of this member, see the IToolboxService.GetSelectedToolboxItem method.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIToolboxService.GetToolboxItems()

Gets the entire collection of toolbox items from the toolbox.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIToolboxService.GetToolboxItems(IDesignerHost)

Gets the collection of toolbox items that are associated with the specified designer host from the toolbox.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIToolboxService.GetToolboxItems(String)

Gets a collection of toolbox items from the toolbox that match the specified category.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIToolboxService.GetToolboxItems(String, IDesignerHost)

Gets the collection of toolbox items that are associated with the specified designer host and category from the toolbox.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIToolboxService.IsSupported(Object, ICollection)

Gets a value indicating whether the specified object, which represents a serialized toolbox item, matches the specified attributes.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIToolboxService.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.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIToolboxService.IsToolboxItem(Object)

Gets a value indicating whether the specified object is a serialized toolbox item.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIToolboxService.IsToolboxItem(Object, IDesignerHost)

Gets a value indicating whether the specified object is a serialized toolbox item byusing the specified designer host.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIToolboxService.Refresh()

Refreshes the state of the toolbox items.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIToolboxService.RemoveCreator(String)

Removes a previously added toolbox item creator of the specified data format.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIToolboxService.RemoveCreator(String, IDesignerHost)

Removes a previously added toolbox creator that is associated with the specified data format and the specified designer host.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIToolboxService.RemoveToolboxItem(ToolboxItem)

Removes the specified toolbox item from the toolbox.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIToolboxService.RemoveToolboxItem(ToolboxItem, String)

Removes the specified toolbox item from the toolbox.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIToolboxService.SelectedToolboxItemUsed()

Notifies the toolbox service that the selected tool has been used.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIToolboxService.SerializeToolboxItem(ToolboxItem)

Gets a serializable object that represents the specified toolbox item.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIToolboxService.SetCursor()

Sets the current application's cursor to a cursor that represents the currently selected tool.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIToolboxService.SetSelectedToolboxItem(ToolboxItem)

Selects the specified toolbox item.

System_CAPS_pubinterfaceSystem_CAPS_privpropertyIToolboxService.CategoryNames

For a description of this member, see the IToolboxService.CategoryNames property.

System_CAPS_pubinterfaceSystem_CAPS_privpropertyIToolboxService.SelectedCategory

For a description of this member, see the IToolboxService.SelectedCategory property.

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:

.NET Framework
Available since 2.0

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: