ReSharper DevGuide

Edit page

Navigate to a Particular Tree Node

What you should know beforehand:

Examples (?):

In case you have already obtained your navigation target, e.g., an ITreeNode instance, you can use its NavigateToTreeNode() method to navigate to it:

ITreeNode node = ... ; node.NavigateToTreeNode(true);

Other PSI syntax tree classes may also provide methods for navigation, e.g. IDeclaredElement:

IDeclaredElement element = ... ; element.Navigate(true);
Last modified: 12 July 2017