IOutliningManager Interface

Provides outlining functionality.

Namespace:  Microsoft.VisualStudio.Text.Outlining
Assembly:  Microsoft.VisualStudio.Text.UI (in Microsoft.VisualStudio.Text.UI.dll)

'Declaration
Public Interface IOutliningManager _
	Inherits IDisposable

The IOutliningManager type exposes the following members.

  NameDescription
Public propertyEnabledDetermines whether outlining is enabled.
Top

  NameDescription
Public methodCollapseAllCollapses all the regions in the specified span that match the specified predicate.
Public methodDisposePerforms application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. (Inherited from IDisposable.)
Public methodExpandExpands the collapsible span.
Public methodExpandAllExpands all the regions in the specified span that match the specified predicate.
Public methodGetAllRegions(NormalizedSnapshotSpanCollection)Gets all the regions that intersect the given collection of spans, whether or not they are collapsed.
Public methodGetAllRegions(SnapshotSpan)Gets all the regions that intersect the given span, whether or not they are collapsed.
Public methodGetAllRegions(NormalizedSnapshotSpanCollection, Boolean)Gets all the regions that intersect the given collection of spans, whether or not they are collapsed.
Public methodGetAllRegions(SnapshotSpan, Boolean)Gets all the regions that intersect the given span, whether or not they are collapsed.
Public methodGetCollapsedRegions(NormalizedSnapshotSpanCollection)Gets all the collapsed regions that intersect the given collection of spans.
Public methodGetCollapsedRegions(SnapshotSpan)Gets all the collapsed regions that intersect the given span.
Public methodGetCollapsedRegions(NormalizedSnapshotSpanCollection, Boolean)Gets all the collapsed regions that intersect the given collection of spans.
Public methodGetCollapsedRegions(SnapshotSpan, Boolean)Gets all the collapsed regions that intersect the given span.
Public methodTryCollapseTries to collapse a given region.
Top

  NameDescription
Public eventOutliningEnabledChangedOccurs when outlining has been enabled or disabled.
Public eventRegionsChangedOccurs when there are changes in the set of ICollapsible regions on the corresponding elision buffer.
Public eventRegionsCollapsedOccurs when an ICollapsible region is collapsed.
Public eventRegionsExpandedOccurs when an ICollapsed region is expanded.
Top

Any methods that take SnapshotSpan objects are spans of the edit buffer in the view model of a view. This buffer can also be retrieved from the TextBuffer property. This outlining manager is provided by the IOutliningManagerService.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft