views:

698

answers:

1

i need to see the ClientRectangle of a form as i'm designing it. This particular property is tagged as "Advanced", and by default is hidden from the Properties window:

[EditorBrowsable(EditorBrowsableState.Advanced), ...]
public Rectangle ClientRectangle

If the ClientRectangle property i want to look at is out, then i guess i can settle for the advanced ClientSize property:

[..., EditorBrowsable(EditorBrowsableState.Advanced)]
public Size ClientSize

The documentation for the EditorBrowsable attribute leads to an enumeration with 3 values:

Always The property or method is always browsable from within an editor.

Never The property or method is never browsable from within an editor.

Advanced The property or method is a feature that only advanced users should see. An editor can either show or hide such properties.

Apparently i am an "advanced user", so how do tell Visual Studio that i am an advanced user so i can see the advanced properties?


Update One

The linked page talks about being able to enable Intellisense and the Properties Window to show advanced memebers:

In Visual C#, you can control when advanced properties appear in IntelliSense and the Properties Window with the Hide Advanced Members setting under Tools | Options | Text Editor | C#. The corresponding EditorBrowsableState is Advanced.

Unfortunatly this option seems to, in reality, only apply to Intellisense. Having it unchecked does not make advanced properties visible in the Properties Window

Note: the option is unchecked by default.

+1  A: 

The answer is in the link you provided:

In Visual C#, you can control when advanced properties appear in IntelliSense and the Properties Window with the Hide Advanced Members setting under Tools | Options | Text Editor | C#. The corresponding EditorBrowsableState is Advanced.

w4g3n3r
i have it unchecked and the items do not appear in the Properties Window.
Ian Boyd