IOutliningManagerService.GetOutliningManager(ITextView) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets an IOutliningManager for the given view.
public:
Microsoft::VisualStudio::Text::Outlining::IOutliningManager ^ GetOutliningManager(Microsoft::VisualStudio::Text::Editor::ITextView ^ textView);
public Microsoft.VisualStudio.Text.Outlining.IOutliningManager GetOutliningManager (Microsoft.VisualStudio.Text.Editor.ITextView textView);
abstract member GetOutliningManager : Microsoft.VisualStudio.Text.Editor.ITextView -> Microsoft.VisualStudio.Text.Outlining.IOutliningManager
Public Function GetOutliningManager (textView As ITextView) As IOutliningManager
Parameters
Returns
A valid outlining manager if the view model supports outlining, otherwise null.
Exceptions
textView
is null.
Remarks
The outlining manager is available only for views that have the Structured role. Also, while IOutliningManager implements IDisposable, callers should take care to not dispose of it.