ToolboxItemFilterAttribute Class
Specifies the filter string and filter type to use for a toolbox item.
Assembly: System (in System.dll)
| Name | Description | |
|---|---|---|
![]() | ToolboxItemFilterAttribute(String) | Initializes a new instance of the ToolboxItemFilterAttribute class using the specified filter string. |
![]() | ToolboxItemFilterAttribute(String, ToolboxItemFilterType) | Initializes a new instance of the ToolboxItemFilterAttribute class using the specified filter string and type. |
| Name | Description | |
|---|---|---|
![]() | FilterString | Gets the filter string for the toolbox item. |
![]() | FilterType | Gets the type of the filter. |
![]() | TypeId | Gets the type ID for the attribute.(Overrides Attribute.TypeId.) |
| Name | Description | |
|---|---|---|
![]() | Equals(Object) | Returns a value that indicates whether this instance is equal to a specified object.(Overrides Attribute.Equals(Object).) |
![]() | GetHashCode() | Returns the hash code for this instance.(Overrides Attribute.GetHashCode().) |
![]() | GetType() | |
![]() | IsDefaultAttribute() | When overridden in a derived class, indicates whether the value of this instance is the default value for the derived class.(Inherited from Attribute.) |
![]() | Match(Object) | Indicates whether the specified object has a matching filter string.(Overrides Attribute.Match(Object).) |
![]() | ToString() | Returns a string that represents the current object.(Overrides Object.ToString().) |
| Name | Description | |
|---|---|---|
![]() ![]() | _Attribute.GetIDsOfNames(Guid, IntPtr, UInt32, UInt32, IntPtr) | Maps a set of names to a corresponding set of dispatch identifiers.(Inherited from Attribute.) |
![]() ![]() | _Attribute.GetTypeInfo(UInt32, UInt32, IntPtr) | Retrieves the type information for an object, which can be used to get the type information for an interface.(Inherited from Attribute.) |
![]() ![]() | _Attribute.GetTypeInfoCount(UInt32) | Retrieves the number of type information interfaces that an object provides (either 0 or 1).(Inherited from Attribute.) |
![]() ![]() | _Attribute.Invoke(UInt32, Guid, UInt32, Int16, IntPtr, IntPtr, IntPtr, IntPtr) | Provides access to properties and methods exposed by an object.(Inherited from Attribute.) |
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.
Available since 1.1
Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.



