Kommentar
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
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, _
exposedRegionsOnly As Boolean _
) As IEnumerable(Of ICollapsed)
IEnumerable<ICollapsed> GetCollapsedRegions(
NormalizedSnapshotSpanCollection spans,
bool exposedRegionsOnly
)
IEnumerable<ICollapsed^>^ GetCollapsedRegions(
NormalizedSnapshotSpanCollection^ spans,
bool exposedRegionsOnly
)
abstract GetCollapsedRegions :
spans:NormalizedSnapshotSpanCollection *
exposedRegionsOnly:bool -> IEnumerable<ICollapsed>
function GetCollapsedRegions(
spans : NormalizedSnapshotSpanCollection,
exposedRegionsOnly : boolean
) : IEnumerable<ICollapsed>
Parameters
spans
Type: Microsoft.VisualStudio.Text.NormalizedSnapshotSpanCollectionThe collection of spans.
exposedRegionsOnly
Type: System.Booleantrue 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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.