ToolboxService.IToolboxService.GetSelectedToolboxItem Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: Under hela 2024 kommer vi att fasa ut GitHub-problem som feedbackmekanism för innehåll och ersätta det med ett nytt feedbacksystem. Mer information finns i:Skicka och visa feedback för