I'm working on a new add-in, and I'm wondering how I can add the hyperlinking feature that's prevalent within Reflector (e.g. where there's a hyperlink and clicking on it moves you to the correct method node in the tree view). I'm guessing this is a fairly simple thing to do but I'm not sure how to pull it off. Any suggestions would be appreciated.

Thanks,
Jason
JasonBock
0

Comments

1 comment

  • James Moore
    Hi Jason,

    You should be able to do this by calling GetService and getting an instance of IAssemblyBrowser. You can then set ActiveItem on IAssemblyBrowser.

    The IAssemblyBrowser.ActiveItem will take any of the following types:
    IAssemblyReference
    ITypeReference
    IMemberReference // And derived types IE IMemberDeclaration etc
    IResource
    IModule // As long as module.Assembly != null

    Hope this helps,

    James
    James Moore
    0

Add comment

Please sign in to leave a comment.