Quantcast
Channel: Visual Studio Integrate forum
Viewing all articles
Browse latest Browse all 4410

IVsTextManager.GetActiveView() equavalent for use with IWpfTextView & ITextBuffer?

$
0
0

Is there a way to map between an ITextBuffer and the active view (IWpfTextView) for that buffer?

There is n method:

IVsTextManager.GetActiveView(
  int fMustHaveFocus,
  IVsTextBuffer pBuffer,
  out IVsTextView ppView
)

That does the buffer to view mapping for an IVsTextBuffer and IVsTextView (I'm guessing these are older/alternate interfaces?)

I'm trying to implement an ITagger service and want to get the active view so I can process Mouse messages. I'm given an ITextBuffer object and would like to get the current active view for the buffer.



Viewing all articles
Browse latest Browse all 4410

Trending Articles