Compartir a través de


IOutliningManager.CollapseAll Method

Collapses all the regions in the specified span that match the specified predicate.

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

Syntax

'Declaration
Function CollapseAll ( _
    span As SnapshotSpan, _
    match As Predicate(Of ICollapsible) _
) As IEnumerable(Of ICollapsed)
IEnumerable<ICollapsed> CollapseAll(
    SnapshotSpan span,
    Predicate<ICollapsible> match
)
IEnumerable<ICollapsed^>^ CollapseAll(
    SnapshotSpan span, 
    Predicate<ICollapsible^>^ match
)
abstract CollapseAll : 
        span:SnapshotSpan * 
        match:Predicate<ICollapsible> -> IEnumerable<ICollapsed> 
function CollapseAll(
    span : SnapshotSpan, 
    match : Predicate<ICollapsible>
) : IEnumerable<ICollapsed>

Parameters

  • match
    Type: Predicate<ICollapsible>

    The predicate to match.

Return Value

Type: IEnumerable<ICollapsed>
The newly-collapsed regions.

.NET Framework Security

See Also

Reference

IOutliningManager Interface

Microsoft.VisualStudio.Text.Outlining Namespace