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
'Dichiarazione
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
- span
Type: Microsoft.VisualStudio.Text.SnapshotSpan
The span.
- match
Type: System.Predicate<ICollapsible>
The predicate to match.
Return Value
Type: System.Collections.Generic.IEnumerable<ICollapsed>
The newly-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.