Partager via


IOutliningManager.GetCollapsedRegions Method (SnapshotSpan, Boolean)

Gets all the collapsed regions that intersect the given span.

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

Syntax

'Déclaration
Function GetCollapsedRegions ( _
    span As SnapshotSpan, _
    exposedRegionsOnly As Boolean _
) As IEnumerable(Of ICollapsed)
IEnumerable<ICollapsed> GetCollapsedRegions(
    SnapshotSpan span,
    bool exposedRegionsOnly
)
IEnumerable<ICollapsed^>^ GetCollapsedRegions(
    SnapshotSpan span, 
    bool exposedRegionsOnly
)
abstract GetCollapsedRegions : 
        span:SnapshotSpan * 
        exposedRegionsOnly:bool -> IEnumerable<ICollapsed> 
function GetCollapsedRegions(
    span : SnapshotSpan, 
    exposedRegionsOnly : boolean
) : IEnumerable<ICollapsed>

Parameters

  • exposedRegionsOnly
    Type: System.Boolean
    true if this method should return only top-level regions (regions that aren't inside another collapsed region).

Return Value

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

.NET Framework Security

See Also

Reference

IOutliningManager Interface

GetCollapsedRegions Overload

Microsoft.VisualStudio.Text.Outlining Namespace