Name

ParenthesizePropertyNameAttribute

Synopsis

You can mark a property with this attribute if its name should be placed in parentheses when displayed in a designer. Note that this has the side effect of bumping it near to the top of its category or list. Typically, it is used to indicate derived properties.


public sealed class ParenthesizePropertyNameAttribute : Attribute {

// Public Constructors

   public ParenthesizePropertyNameAttribute();

   public ParenthesizePropertyNameAttribute(bool needParenthesis);

// Public Static Fields

   public static readonly ParenthesizePropertyNameAttribute Default;  // =System.ComponentModel.ParenthesizePropertyNameAttribute

                  // Public Instance Properties

   public bool NeedParenthesis{get; }

// Public Instance Methods

   public override bool Equals(object o);  // overrides Attribute

   public override int GetHashCode();  // overrides Attribute

   public override bool IsDefaultAttribute();  // overrides Attribute

}

Hierarchy

System.Object System.Attribute ParenthesizePropertyNameAttribute

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.