ToolboxService Class

Provides a default implementation of the IToolboxService interface.

System.Object
  System.Drawing.Design.ToolboxService

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

[PermissionSetAttribute(SecurityAction.LinkDemand, Name = "FullTrust")]
[PermissionSetAttribute(SecurityAction.InheritanceDemand, Name = "FullTrust")]
public abstract class ToolboxService : IToolboxService, 
	IComponentDiscoveryService

The ToolboxService type exposes the following members.

  NameDescription
Protected methodToolboxServiceInitializes a new instance of the ToolboxService class.
Top

  NameDescription
Protected propertyCategoryNamesGets a collection of strings depicting available categories of the toolbox.
Protected propertySelectedCategoryGets or sets the name of the currently selected category.
Protected propertySelectedItemContainerGets or sets the currently selected item container.
Top

  NameDescription
Protected methodCreateItemContainer(IDataObject)Creates a new toolbox item container from a saved data object.
Protected methodCreateItemContainer(ToolboxItem, IDesignerHost)Creates a new toolbox item container from a toolbox item.
Public methodEquals(Object)Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodFilterChangedOccurs when the toolbox service detects that the active designer’s toolbox item filter has changed.
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Protected methodGetItemContainers()Returns an IList containing all items on the toolbox.
Protected methodGetItemContainers(String)Returns an IList containing all items in a given category.
Public methodStatic memberGetToolboxItem(Type)Returns a toolbox item for a given type.
Public methodStatic memberGetToolboxItem(Type, Boolean)Returns a toolbox item for a given type.
Public methodStatic memberGetToolboxItems(AssemblyName)Returns an ICollection of ToolboxItem objects for the given assembly.
Public methodStatic memberGetToolboxItems(Assembly, String)Returns an ICollection containing all the toolbox items in the given assembly.
Public methodStatic memberGetToolboxItems(AssemblyName, Boolean)Returns an ICollection of ToolboxItem objects for the given assembly.
Public methodStatic memberGetToolboxItems(Assembly, String, Boolean)Returns an ICollection of ToolboxItem objects for the given assembly.
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodIsItemContainerReturns a value indicating whether the given data object represents an item container.
Protected methodIsItemContainerSupportedDetermines whether the toolbox item container is supported by the given designer host.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Protected methodRefreshRefreshes the state of the toolbox items.
Protected methodSelectedItemContainerUsedReceives a call from the toolbox service when a user reports that a selected toolbox item has been used.
Protected methodSetCursorSets the current application's cursor to a cursor that represents the currently selected tool.
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Public methodStatic memberUnloadToolboxItemsUnloads any assemblies that were locked as a result of calling the GetToolboxItems method.
Top

  NameDescription
Explicit interface implemetationPrivate methodIComponentDiscoveryService.GetComponentTypesGets the list of available component types.
Explicit interface implemetationPrivate methodIToolboxService.AddCreator(ToolboxItemCreatorCallback, String)For a description of this member, see the IToolboxService.AddCreator method.
Explicit interface implemetationPrivate methodIToolboxService.AddCreator(ToolboxItemCreatorCallback, String, IDesignerHost)For a description of this member, see the IToolboxService.AddCreator method.
Explicit interface implemetationPrivate methodIToolboxService.AddLinkedToolboxItem(ToolboxItem, IDesignerHost)For a description of this member, see the IToolboxService.AddLinkedToolboxItem method.
Explicit interface implemetationPrivate methodIToolboxService.AddLinkedToolboxItem(ToolboxItem, String, IDesignerHost)For a description of this member, see the IToolboxService.AddLinkedToolboxItemmethod.
Explicit interface implemetationPrivate methodIToolboxService.AddToolboxItem(ToolboxItem)For a description of this member, see the IToolboxService.AddToolboxItem method.
Explicit interface implemetationPrivate methodIToolboxService.AddToolboxItem(ToolboxItem, String)For a description of this member, see the IToolboxService.AddToolboxItem method.
Explicit interface implemetationPrivate propertyIToolboxService.CategoryNamesFor a description of this member, see the IToolboxService.CategoryNames property.
Explicit interface implemetationPrivate methodIToolboxService.DeserializeToolboxItem(Object)For a description of this member, see the IToolboxService.DeserializeToolboxItem method.
Explicit interface implemetationPrivate methodIToolboxService.DeserializeToolboxItem(Object, IDesignerHost)For a description of this member, see the IToolboxService.DeserializeToolboxItem method.
Explicit interface implemetationPrivate methodIToolboxService.GetSelectedToolboxItem()For a description of this member, see the IToolboxService.GetSelectedToolboxItem method.
Explicit interface implemetationPrivate methodIToolboxService.GetSelectedToolboxItem(IDesignerHost)For a description of this member, see the IToolboxService.GetSelectedToolboxItem method.
Explicit interface implemetationPrivate methodIToolboxService.GetToolboxItems()Gets the entire collection of toolbox items from the toolbox.
Explicit interface implemetationPrivate methodIToolboxService.GetToolboxItems(IDesignerHost)Gets the collection of toolbox items that are associated with the specified designer host from the toolbox.
Explicit interface implemetationPrivate methodIToolboxService.GetToolboxItems(String)Gets a collection of toolbox items from the toolbox that match the specified category.
Explicit interface implemetationPrivate methodIToolboxService.GetToolboxItems(String, IDesignerHost)Gets the collection of toolbox items that are associated with the specified designer host and category from the toolbox.
Explicit interface implemetationPrivate methodIToolboxService.IsSupported(Object, ICollection)Gets a value indicating whether the specified object, which represents a serialized toolbox item, matches the specified attributes.
Explicit interface implemetationPrivate methodIToolboxService.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.
Explicit interface implemetationPrivate methodIToolboxService.IsToolboxItem(Object)Gets a value indicating whether the specified object is a serialized toolbox item.
Explicit interface implemetationPrivate methodIToolboxService.IsToolboxItem(Object, IDesignerHost)Gets a value indicating whether the specified object is a serialized toolbox item byusing the specified designer host.
Explicit interface implemetationPrivate methodIToolboxService.RefreshRefreshes the state of the toolbox items.
Explicit interface implemetationPrivate methodIToolboxService.RemoveCreator(String)Removes a previously added toolbox item creator of the specified data format.
Explicit interface implemetationPrivate methodIToolboxService.RemoveCreator(String, IDesignerHost)Removes a previously added toolbox creator that is associated with the specified data format and the specified designer host.
Explicit interface implemetationPrivate methodIToolboxService.RemoveToolboxItem(ToolboxItem)Removes the specified toolbox item from the toolbox.
Explicit interface implemetationPrivate methodIToolboxService.RemoveToolboxItem(ToolboxItem, String)Removes the specified toolbox item from the toolbox.
Explicit interface implemetationPrivate propertyIToolboxService.SelectedCategoryFor a description of this member, see the IToolboxService.SelectedCategory property.
Explicit interface implemetationPrivate methodIToolboxService.SelectedToolboxItemUsedNotifies the toolbox service that the selected tool has been used.
Explicit interface implemetationPrivate methodIToolboxService.SerializeToolboxItemGets a serializable object that represents the specified toolbox item.
Explicit interface implemetationPrivate methodIToolboxService.SetCursorSets the current application's cursor to a cursor that represents the currently selected tool.
Explicit interface implemetationPrivate methodIToolboxService.SetSelectedToolboxItemSelects the specified toolbox item.
Top

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.

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0

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.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft