Compartir a través de


IOutliningManagerService.GetOutliningManager(ITextView) Method

Definition

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

textView
ITextView

The ITextView from which to get the outlining manager.

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.

Applies to