ToolboxItemFilterAttribute

ToolboxItemFilterAttribute serializable

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



. Net Windows Forms in a Nutshell
.NET Windows Forms in a Nutshell
ISBN: 0596003382
EAN: 2147483647
Year: 2002
Pages: 794

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net