次の方法で共有


IOutliningManager.GetAllRegions Method (NormalizedSnapshotSpanCollection, Boolean)

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

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

Syntax

'宣言
Function GetAllRegions ( _
    spans As NormalizedSnapshotSpanCollection, _
    exposedRegionsOnly As Boolean _
) As IEnumerable(Of ICollapsible)
IEnumerable<ICollapsible> GetAllRegions(
    NormalizedSnapshotSpanCollection spans,
    bool exposedRegionsOnly
)
IEnumerable<ICollapsible^>^ GetAllRegions(
    NormalizedSnapshotSpanCollection^ spans, 
    bool exposedRegionsOnly
)
abstract GetAllRegions : 
        spans:NormalizedSnapshotSpanCollection * 
        exposedRegionsOnly:bool -> IEnumerable<ICollapsible> 
function GetAllRegions(
    spans : NormalizedSnapshotSpanCollection, 
    exposedRegionsOnly : boolean
) : IEnumerable<ICollapsible>

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<ICollapsible>
A sorted sequence of all intersecting collapsible regions.

.NET Framework Security

See Also

Reference

IOutliningManager Interface

GetAllRegions Overload

Microsoft.VisualStudio.Text.Outlining Namespace