Click here to Skip to main content
15,889,861 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Recently, I do some work in Visual Studio Extension.See the code,in the Method OnRegisterView in Class TextManagerEventSink,I want to get all the text of this pView. However,all the Method of interface IVsTextView seems useless, could anyone help?

C#
public class TextManagerEventSink : IVsTextManagerEvents
       {
           public void OnRegisterMarkerType(int iMarkerType)
           {

           }
           public void OnRegisterView(IVsTextView pView)
           {
               CommandFilter filter = new CommandFilter();
               pView.AddCommandFilter(filter, out filter.NextCommandTarget);

           }

           public void OnUnregisterView(IVsTextView pView)
           {
           }

           public void OnUserPreferencesChanged(VIEWPREFERENCES[] pViewPrefs, FRAMEPREFERENCES[] pFramePrefs, LANGPREFERENCES[] pLangPrefs, FONTCOLORPREFERENCES[] pColorPrefs)
           {
           }
       }
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900