Name
DesignerAttribute
Synopsis
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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access