DesignerAttribute

DesignerAttribute

System.ComponentModel (system.dll) sealed class

To provide a custom designer for a Component or System.Windows.Forms.Control , you should decorate the class with this attribute. (See EditorAttribute for information on custom type editors for a specific property within a component).

You can specify the DesignerTypeName : the name of the type that implements the System.ComponentModel.Design.IDesigner interface on behalf of our designable class. You can also specify the base type of the designer with DesignerBaseTypeName . While this would default to System.ComponentModel.Design.IDesigner , you can specify a different System.ComponentModel.Design.IDesigner -derived interface such as System.ComponentModel.Design.IRootDesigner

 public sealed class  DesignerAttribute  : Attribute {  // Public Constructors  public  DesignerAttribute  (string  designerTypeName  );    public  DesignerAttribute  (string  designerTypeName  , string  designerBaseTypeName  );    public  DesignerAttribute  (string  designerTypeName  , Type  designerBaseType  );    public  DesignerAttribute  (Type  designerType  );    public  DesignerAttribute  (Type  designerType  , Type  designerBaseType  );  // Public Instance Properties  public string  DesignerBaseTypeName  {get; }    public string  DesignerTypeName  {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  } 

Hierarchy

System.Object System.Attribute DesignerAttribute

Valid On

Class, Interface



. 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