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
'宣言
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
- spans
Type: Microsoft.VisualStudio.Text.NormalizedSnapshotSpanCollection
The collection of spans.
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.