Share via


IOutliningManager.GetCollapsedRegions Method

Definition

Overloads

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.

GetCollapsedRegions(SnapshotSpan, Boolean)

Gets all the collapsed regions that intersect the given span.

public:
 System::Collections::Generic::IEnumerable<Microsoft::VisualStudio::Text::Outlining::ICollapsed ^> ^ GetCollapsedRegions(Microsoft::VisualStudio::Text::SnapshotSpan span, bool exposedRegionsOnly);
public System.Collections.Generic.IEnumerable<Microsoft.VisualStudio.Text.Outlining.ICollapsed> GetCollapsedRegions (Microsoft.VisualStudio.Text.SnapshotSpan span, bool exposedRegionsOnly);
abstract member GetCollapsedRegions : Microsoft.VisualStudio.Text.SnapshotSpan * bool -> seq<Microsoft.VisualStudio.Text.Outlining.ICollapsed>
Public Function GetCollapsedRegions (span As SnapshotSpan, exposedRegionsOnly As Boolean) As IEnumerable(Of ICollapsed)

Parameters

span
SnapshotSpan

The span.

exposedRegionsOnly
Boolean

If true, this returns only top-level regions (regions that aren't inside another collapsed region).

Returns

A sorted sequence of collapsed regions.

Applies to

GetCollapsedRegions(NormalizedSnapshotSpanCollection, Boolean)

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

public:
 System::Collections::Generic::IEnumerable<Microsoft::VisualStudio::Text::Outlining::ICollapsed ^> ^ GetCollapsedRegions(Microsoft::VisualStudio::Text::NormalizedSnapshotSpanCollection ^ spans, bool exposedRegionsOnly);
public System.Collections.Generic.IEnumerable<Microsoft.VisualStudio.Text.Outlining.ICollapsed> GetCollapsedRegions (Microsoft.VisualStudio.Text.NormalizedSnapshotSpanCollection spans, bool exposedRegionsOnly);
abstract member GetCollapsedRegions : Microsoft.VisualStudio.Text.NormalizedSnapshotSpanCollection * bool -> seq<Microsoft.VisualStudio.Text.Outlining.ICollapsed>
Public Function GetCollapsedRegions (spans As NormalizedSnapshotSpanCollection, exposedRegionsOnly As Boolean) As IEnumerable(Of ICollapsed)

Parameters

spans
NormalizedSnapshotSpanCollection

The collection of spans.

exposedRegionsOnly
Boolean

If true, this returns only top-level regions (regions that aren't inside another collapsed region).

Returns

A sorted sequence of collapsed regions.

Applies to

GetCollapsedRegions(NormalizedSnapshotSpanCollection)

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

public:
 System::Collections::Generic::IEnumerable<Microsoft::VisualStudio::Text::Outlining::ICollapsed ^> ^ GetCollapsedRegions(Microsoft::VisualStudio::Text::NormalizedSnapshotSpanCollection ^ spans);
public System.Collections.Generic.IEnumerable<Microsoft.VisualStudio.Text.Outlining.ICollapsed> GetCollapsedRegions (Microsoft.VisualStudio.Text.NormalizedSnapshotSpanCollection spans);
abstract member GetCollapsedRegions : Microsoft.VisualStudio.Text.NormalizedSnapshotSpanCollection -> seq<Microsoft.VisualStudio.Text.Outlining.ICollapsed>
Public Function GetCollapsedRegions (spans As NormalizedSnapshotSpanCollection) As IEnumerable(Of ICollapsed)

Parameters

spans
NormalizedSnapshotSpanCollection

The collection of spans.

Returns

A sorted sequence of collapsed regions.

Applies to

GetCollapsedRegions(SnapshotSpan)

Gets all the collapsed regions that intersect the given span.

public:
 System::Collections::Generic::IEnumerable<Microsoft::VisualStudio::Text::Outlining::ICollapsed ^> ^ GetCollapsedRegions(Microsoft::VisualStudio::Text::SnapshotSpan span);
public System.Collections.Generic.IEnumerable<Microsoft.VisualStudio.Text.Outlining.ICollapsed> GetCollapsedRegions (Microsoft.VisualStudio.Text.SnapshotSpan span);
abstract member GetCollapsedRegions : Microsoft.VisualStudio.Text.SnapshotSpan -> seq<Microsoft.VisualStudio.Text.Outlining.ICollapsed>
Public Function GetCollapsedRegions (span As SnapshotSpan) As IEnumerable(Of ICollapsed)

Parameters

span
SnapshotSpan

The span.

Returns

A sorted sequence of collapsed regions.

Applies to