IOutliningManagerService.GetOutliningManager Method
Gets an IOutliningManager for the given view.
Namespace: Microsoft.VisualStudio.Text.Outlining
Assembly: Microsoft.VisualStudio.Text.UI (in Microsoft.VisualStudio.Text.UI.dll)
Syntax
'Declaration
Function GetOutliningManager ( _
textView As ITextView _
) As IOutliningManager
IOutliningManager GetOutliningManager(
ITextView textView
)
IOutliningManager^ GetOutliningManager(
ITextView^ textView
)
abstract GetOutliningManager :
textView:ITextView -> IOutliningManager
function GetOutliningManager(
textView : ITextView
) : IOutliningManager
Parameters
- textView
Type: Microsoft.VisualStudio.Text.Editor.ITextView
The ITextView from which to get the outlining manager.
Return Value
Type: Microsoft.VisualStudio.Text.Outlining.IOutliningManager
A valid outlining manager if the view model supports outlining, otherwise null.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | textView is nulla null reference (Nothing in Visual Basic). |
Remarks
The outlining manager is available only for views that have the Structured role.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.