IElisionBuffer.ExpandSpans Method

Expands the text specified by the specified spans.

Namespace:  Microsoft.VisualStudio.Text.Projection
Assembly:  Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)

IProjectionSnapshot ExpandSpans(
	NormalizedSpanCollection spansToExpand
)

Parameters

spansToExpand
Type: Microsoft.VisualStudio.Text.NormalizedSpanCollection

The spans of text to expand, with respect to the current snapshot of the source buffer. It is not an error if some of the designated text is already expanded.

ExceptionCondition
ArgumentNullException

spansToExpand is null.

ArgumentOutOfRangeException

The end of the final spans in spansToExpand is greater than the length of the current snapshot of the SourceBuffer.

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