Get info about object in member list prefilter event

SyntaxEditor .NET Languages Add-on for Windows Forms Forum

Posted 11 years ago by Christer Bergström
Version: 4.0.0273
Avatar
I've set up .NET intellisense with automatic member lists. Consider this code in the editor:

using System;

public class Another
{
  /// <summary>
  /// This is the string Str
  /// </summary>
  public string Str;
}

public class My 
{
    public MyMethod()
    {
      Another c = new Another();
    }
}
If at the end of MyMethod, I type "c." the intellisense member list will pop up. The item "Str" will have a Description showing among other text also the summary tag info ("This is..."). So apparently SyntaxEditor knows which Description to use for this item.

But in the prefilter event, I would like to reach this info also, for example to decide a suitable ImageIndex, or to set the Description manually. Suppose the IntellisenseMemberListItem.Tag is used for this. But in this case it will only contain a string like "[116-119] VariableDeclarator". How can I use this to get the info for Str?

Thanks for any help...

Comments (2)

Posted 11 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi, that string is just the ToString of the object in Tag. It isn't the actual value of Tag. The object in there is a VariableDeclarator (an AST node) for the "Another c" line. Check that out.


Actipro Software Support

Posted 11 years ago by Christer Bergström
Avatar
Thanks, should have thought of looking for it in help...
Found it now.
The latest build of this product (v2018.1 build 0341) was released 6 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.