Name

EditorAttribute

Synopsis

You can decorate a specific property, or an entire, class with this attribute to indicate a custom editor that should be used to modify the type. Similar to DesignerAttribute, you can specify EditorTypeName, and EditorBaseTypeName. Note that this must be System.Drawing.Design.UITypeEditor.

See System.Drawing.Design.UITypeEditor for more details.


public sealed class EditorAttribute : Attribute {

// Public Constructors

   public EditorAttribute();

   public EditorAttribute(string typeName, string baseTypeName);

   public EditorAttribute(string typeName, Type baseType);

   public EditorAttribute(Type type, Type baseType);

// Public Instance Properties

   public string EditorBaseTypeName{get; }

   public string EditorTypeName{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 EditorAttribute

Valid On

All

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.