Condividi tramite


IOutliningManager.GetCollapsedRegions Method (NormalizedSnapshotSpanCollection)

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

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

Syntax

'Declaration
Function GetCollapsedRegions ( _
    spans As NormalizedSnapshotSpanCollection _
) As IEnumerable(Of ICollapsed)
IEnumerable<ICollapsed> GetCollapsedRegions(
    NormalizedSnapshotSpanCollection spans
)
IEnumerable<ICollapsed^>^ GetCollapsedRegions(
    NormalizedSnapshotSpanCollection^ spans
)
abstract GetCollapsedRegions : 
        spans:NormalizedSnapshotSpanCollection -> IEnumerable<ICollapsed> 
function GetCollapsedRegions(
    spans : NormalizedSnapshotSpanCollection
) : IEnumerable<ICollapsed>

Parameters

Return Value

Type: IEnumerable<ICollapsed>
A sorted sequence of collapsed regions.

.NET Framework Security

See Also

Reference

IOutliningManager Interface

GetCollapsedRegions Overload

Microsoft.VisualStudio.Text.Outlining Namespace