This documentation is archived and is not being maintained.

ToolboxItemFilterAttribute Class

Specifies the filter string and filter type to use for a toolbox item.

For a list of all members of this type, see ToolboxItemFilterAttribute Members.


[Visual Basic]
NotInheritable Public Class ToolboxItemFilterAttribute
   Inherits Attribute
public sealed class ToolboxItemFilterAttribute : Attribute
public __gc __sealed class ToolboxItemFilterAttribute : public
class ToolboxItemFilterAttribute extends Attribute

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.


ToolboxItemFilterAttribute provides a mechanism by which toolbox items can be marked for use only with designers that have a matching attribute or code that determines whether the item should be enabled or disabled in the toolbox.

A ToolboxItemFilterAttribute can be applied to a ToolboxItem to indicate a filter string and filter type that specify when to enable or disable the item. ToolboxItemFilterAttribute can also be applied to a designer to indicate its requirements for enabling items in the toolbox. This type of attribute can be used to indicate that a toolbox item can only be enabled when a designer with a matching filter string is being used. The type of the filter is indicated in the FilterType property by a ToolboxItemFilterType that indicates whether and how a filter string match is used, or whether to use custom code to determine whether to enable an item.


Namespace: System.ComponentModel

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

Assembly: System (in System.dll)

See Also

ToolboxItemFilterAttribute Members | System.ComponentModel Namespace | ToolboxItemFilterType