次の方法で共有


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

'宣言
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

Return Value

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

.NET Framework Security

See Also

Reference

IOutliningManager Interface

Microsoft.VisualStudio.Text.Outlining Namespace