Freigeben über


IOutliningManager.CollapseAll Method

Definition

Collapses all regions that match the specified predicate.

public:
 System::Collections::Generic::IEnumerable<Microsoft::VisualStudio::Text::Outlining::ICollapsed ^> ^ CollapseAll(Microsoft::VisualStudio::Text::SnapshotSpan span, Predicate<Microsoft::VisualStudio::Text::Outlining::ICollapsible ^> ^ match);
public System.Collections.Generic.IEnumerable<Microsoft.VisualStudio.Text.Outlining.ICollapsed> CollapseAll (Microsoft.VisualStudio.Text.SnapshotSpan span, Predicate<Microsoft.VisualStudio.Text.Outlining.ICollapsible> match);
abstract member CollapseAll : Microsoft.VisualStudio.Text.SnapshotSpan * Predicate<Microsoft.VisualStudio.Text.Outlining.ICollapsible> -> seq<Microsoft.VisualStudio.Text.Outlining.ICollapsed>
Public Function CollapseAll (span As SnapshotSpan, match As Predicate(Of ICollapsible)) As IEnumerable(Of ICollapsed)

Parameters

span
SnapshotSpan

The regions that intersect this span.

match
Predicate<ICollapsible>

The predicate to match.

Returns

The newly-collapsed regions.

Remarks

The match predicate may be passed regions that cannot actually be collapsed, due to the region being partially obscured by another already collapsed region (either pre-existing or collapsed in an earlier call to the predicate). The elements of the returned enumeration do accurately track the regions that were collapsed, so they may differ from the elements for which the predicate returned true.

Applies to