Udostępnij za pośrednictwem


IOutliningManager.GetAllRegions Method

Definition

Overloads

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.

GetAllRegions(NormalizedSnapshotSpanCollection)

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

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

Parameters

spans
NormalizedSnapshotSpanCollection

The collection of spans.

Returns

A sorted sequence of all intersecting collapsible regions.

Applies to

GetAllRegions(SnapshotSpan)

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

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

Parameters

span
SnapshotSpan

The span.

Returns

A sorted sequence of all intersecting collapsible regions.

Applies to

GetAllRegions(NormalizedSnapshotSpanCollection, Boolean)

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

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

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 all intersecting collapsible regions.

Applies to

GetAllRegions(SnapshotSpan, Boolean)

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

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

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 all intersecting collapsible regions.

Applies to