Hello,
I am using the ActiPro SyntaxEditor control with the C#.Net language addon to read out all methods and properties of an assembly and display it in the syntax editor with intellisense when entering the correct namespace.
I also use the the EditorBrowsable Annotation to control showing specific methods/properties to the user.
Example from assembly:/// <summary>/// Access to PropertyA/// </summary>[EditorBrowsable(EditorBrowsableState.Always)]public int PropertyA{get{return _PropertyA;}
set{_PropertyA = value;}}
/// <summary>/// Access to PropertyB/// </summary>[EditorBrowsable(EditorBrowsableState.Never)]public int PropertyB{get{return _PropertyB;}
set{_PropertyB = value;}}
This works very well, so far no problems.
But now i want to make following changes and have no solution so far.
Implement a [EditorBrowsable(EditorBrowsableState::Advanced)] attribute to control if some methods/properties are shown under certain conditions.
(o = is shown; - = is not shown)
| EditorBrowsableState | visibility method xy | visibility method xz |
|---|---|---|
| Never | - | - |
| Always | o | o |
| Advanced | - | o |
| not set | o | o |
Is EditorBrowsable(EditorBrowsableState::Advanced)] attribute supported by ActiPro and how can i implement it?
Best regards
Esther
[Modified 6 years ago]