DesignerWindowPane::GetToolboxItemSupported Method (IDataObject^)

 

Determines whether or not the given data object is supported by the designer.

Namespace:   Microsoft.VisualStudio.Shell.Design
Assembly:  Microsoft.VisualStudio.Shell.Design (in Microsoft.VisualStudio.Shell.Design.dll)

protected:
virtual bool GetToolboxItemSupported(
	IDataObject^ toolboxItem
)

Return Value

Type: System::Boolean

true if the data object represents a supported toolbox item.

Exception Condition
ArgumentNullException

toolboxItem is null.

This method is called when Visual Studio needs to evaluate which toolbox items should be enabled. The default implementation searches the service provider for the IVsToolboxUser interface and delegates. If the IVsToolboxUser interface cannot be found, this will search the service provider for IToolboxService and call IsSupported.

Return to top
Show: