Name
ToolboxItemFilterAttribute
Synopsis
This attribute adorns a class to allow the framework to filter its
availability conditionally on the presence of a similar attribute on
the designer, or using a custom filter provided by the designer by
implementing the
System.Drawing.Design.IToolboxUser.GetToolSupported( )
method.
You can retrieve the FilterString
and
FilterType
for the attribute.
public sealed class ToolboxItemFilterAttribute : Attribute { // Public Constructors public ToolboxItemFilterAttribute(string filterString); public ToolboxItemFilterAttribute(string filterString, ToolboxItemFilterType filterType); // Public Instance Properties public string FilterString{get; } public ToolboxItemFilterType FilterType{get; } public override object TypeId{get; } // overrides Attribute // Public Instance Methods public override bool Equals(object obj); // overrides Attribute public override int GetHashCode(); // overrides Attribute public override bool Match(object obj); // overrides Attribute }
Hierarchy
System.Object
→ System.Attribute → ToolboxItemFilterAttribute
Valid On
Class
Get .NET Windows Forms in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.