DekGenius.com
[ Team LiB ] Previous Section Next Section

ParenthesizePropertyNameAttribute

System.ComponentModel (system.dll)sealed class

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

    [ Team LiB ] Previous Section Next Section