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

How to enumerate Collapsed Regions in the VS2015 code editor window?

$
0
0

HI,

I need to enumerate Collapsed Regions in the code window of VS 2015. I have a solution that worked for VS 2013 that uses interfaces in the following:

  using Microsoft.VisualStudio.Editor;
  using Microsoft.VisualStudio.Text;
  using Microsoft.VisualStudio.Text.Editor;
  using Microsoft.VisualStudio.Text.Outlining;

However, when I converted my project to VS2015, I get errors that .Text is not found etc.

I posted this question in StackOverflow and get the folloing reply:

Use MEF to import an IOutliningManagerService, call GetOutliningManager() with your TextView, then use its methods to see the collapsible regions

Please help me by providing a working example if you can to enumerate Collapsed regions.

Joginder Nahil
www.starprinttools.com


Viewing all articles
Browse latest Browse all 4410

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>