Saturday, September 27, 2008

Tip

To get the IElement at the current caret position, do this:


IElement element = TextControlToPsi.GetElementFromCaretPosition(solution, textControl);


The TextControlToPsi class is located in the JetBrains.Resharper.IDECore assembly.

No comments: