DiagramView::SelectedToolboxItemSupportsFilterString Method (String^)

 

Determines whether the currently selected toolbox item supports the given filter string. Useful for recognizing custom filters.

Namespace:   Microsoft.VisualStudio.Modeling.Diagrams
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll)

public:
bool SelectedToolboxItemSupportsFilterString(
	String^ filter
)

Parameters

filter
Type: System::String^
filterString

Filter string to test support for. If this string is present in the ToolboxItem.Filter collection for the currently selected toolbox item, and the associated ToolboxItemFilterType is not Prevent, then this will return true.

Return Value

Type: System::Boolean

This is a useful helper method for clients that use ToolboxItemFilterAttributes as tags to identify certain toolbox items.

Return to top
Show: