Redigera

Dela via


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.

 virtual System::Drawing::Design::ToolboxItem ^ System.Drawing.Design.IToolboxService.GetSelectedToolboxItem() = System::Drawing::Design::IToolboxService::GetSelectedToolboxItem;
System.Drawing.Design.ToolboxItem IToolboxService.GetSelectedToolboxItem ();
abstract member System.Drawing.Design.IToolboxService.GetSelectedToolboxItem : unit -> System.Drawing.Design.ToolboxItem
override this.System.Drawing.Design.IToolboxService.GetSelectedToolboxItem : unit -> System.Drawing.Design.ToolboxItem
Function GetSelectedToolboxItem () As ToolboxItem Implements 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

IToolboxService.GetSelectedToolboxItem(IDesignerHost)

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

 virtual System::Drawing::Design::ToolboxItem ^ System.Drawing.Design.IToolboxService.GetSelectedToolboxItem(System::ComponentModel::Design::IDesignerHost ^ host) = System::Drawing::Design::IToolboxService::GetSelectedToolboxItem;
System.Drawing.Design.ToolboxItem IToolboxService.GetSelectedToolboxItem (System.ComponentModel.Design.IDesignerHost host);
abstract member System.Drawing.Design.IToolboxService.GetSelectedToolboxItem : System.ComponentModel.Design.IDesignerHost -> System.Drawing.Design.ToolboxItem
override this.System.Drawing.Design.IToolboxService.GetSelectedToolboxItem : System.ComponentModel.Design.IDesignerHost -> System.Drawing.Design.ToolboxItem
Function GetSelectedToolboxItem (host As IDesignerHost) As ToolboxItem Implements IToolboxService.GetSelectedToolboxItem

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