ToolboxItemContainer.GetFilter(ICollection) 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.
Returns a collection of ToolboxItemFilterAttribute objects that represent the current filter for the ToolboxItem.
public:
virtual System::Collections::ICollection ^ GetFilter(System::Collections::ICollection ^ creators);
public virtual System.Collections.ICollection GetFilter (System.Collections.ICollection creators);
abstract member GetFilter : System.Collections.ICollection -> System.Collections.ICollection
override this.GetFilter : System.Collections.ICollection -> System.Collections.ICollection
Public Overridable Function GetFilter (creators As ICollection) As ICollection
Parameters
- creators
- ICollection
A collection of ToolboxItemCreator objects.
Returns
A collection of ToolboxItemFilterAttribute objects. This never returns null
.
Remarks
The creators
parameter is a collection of ToolboxItemCreator objects that represent any custom ToolboxItem creators that should be included when the filter is generated. Custom creators may contribute to the filters. This parameter can be null
if no creators are needed.
The types stored in a ToolboxItem may have a filter associated with them. Filters can be used to restrict the tools that can be placed on designers.