IOutliningManager Interface

Definition

Provides outlining functionality.

public interface IOutliningManager : IDisposable
Implements

Remarks

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.

Properties

Enabled

Determines whether outlining is enabled.

Methods

CollapseAll(SnapshotSpan, Predicate<ICollapsible>)

Collapses all the regions in the specified span that match the specified predicate.

Expand(ICollapsed)

Expands the collapsible span.

ExpandAll(SnapshotSpan, Predicate<ICollapsed>)

Expands all the regions in the specified span that match the specified predicate.

GetAllRegions(NormalizedSnapshotSpanCollection)

Gets all the regions that intersect the given collection of spans, whether or not they are collapsed.

GetAllRegions(SnapshotSpan)

Gets all the regions that intersect the given span, whether or not they are collapsed.

GetAllRegions(NormalizedSnapshotSpanCollection, Boolean)

Gets all the regions that intersect the given collection of spans, whether or not they are collapsed.

GetAllRegions(SnapshotSpan, Boolean)

Gets all the regions that intersect the given span, whether or not they are collapsed.

GetCollapsedRegions(SnapshotSpan, Boolean)

Gets all the collapsed regions that intersect the given span.

GetCollapsedRegions(NormalizedSnapshotSpanCollection, Boolean)

Gets all the collapsed regions that intersect the given collection of spans.

GetCollapsedRegions(NormalizedSnapshotSpanCollection)

Gets all the collapsed regions that intersect the given collection of spans.

GetCollapsedRegions(SnapshotSpan)

Gets all the collapsed regions that intersect the given span.

TryCollapse(ICollapsible)

Tries to collapse a given region.

Events

OutliningEnabledChanged

Occurs when outlining has been enabled or disabled.

RegionsChanged

Occurs when there are changes in the set of ICollapsible regions on the corresponding elision buffer.

RegionsCollapsed

Occurs when an ICollapsible region is collapsed.

RegionsExpanded

Occurs when an ICollapsed region is expanded.

Applies to