IOutliningManager.GetAllRegions Method (SnapshotSpan, Boolean)

Gets all the regions that intersect the given span, whether or not they are collapsed.

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

IEnumerable<ICollapsible> GetAllRegions(
	SnapshotSpan span,
	bool exposedRegionsOnly
)

Parameters

span
Type: Microsoft.VisualStudio.Text.SnapshotSpan

The span.

exposedRegionsOnly
Type: System.Boolean

true if this method should return only top-level regions (regions that aren't inside another collapsed region).

Return Value

Type: System.Collections.Generic.IEnumerable<ICollapsible>
A sorted sequence of all intersecting collapsible regions.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft