DekGenius.com
[ Team LiB ] Previous Section Next Section

ToolboxItemFilterAttributeserializable

System.ComponentModel (system.dll)sealed class

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

    [ Team LiB ] Previous Section Next Section