ToolboxService.IToolboxService.GetSelectedToolboxItem Method

Definition

Gets the currently selected toolbox item.

Overloads

IToolboxService.GetSelectedToolboxItem()

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

IToolboxService.GetSelectedToolboxItem(IDesignerHost)

For a description of this member, see the GetSelectedToolboxItem(IDesignerHost) method.

IToolboxService.GetSelectedToolboxItem()

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

C#
System.Drawing.Design.ToolboxItem IToolboxService.GetSelectedToolboxItem();

Returns

The ToolboxItem that is currently selected, or null if no toolbox item is currently selected.

Implements

Remarks

This member is an explicit interface member implementation. It can be used only when the ToolboxService instance is cast to an IToolboxService interface.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

IToolboxService.GetSelectedToolboxItem(IDesignerHost)

For a description of this member, see the GetSelectedToolboxItem(IDesignerHost) method.

C#
System.Drawing.Design.ToolboxItem IToolboxService.GetSelectedToolboxItem(System.ComponentModel.Design.IDesignerHost host);

Parameters

host
IDesignerHost

The IDesignerHost that the selected tool must be associated with for it to be returned.

Returns

The ToolboxItem that is currently selected, or null if no toolbox item is currently selected.

Implements

Remarks

This member is an explicit interface member implementation. It can be used only when the ToolboxService instance is cast to an IToolboxService interface.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1