IElisionBuffer.ExpandSpans(NormalizedSpanCollection) Method

Definition

Expands the text specified by spansToExpand.

public:
 Microsoft::VisualStudio::Text::Projection::IProjectionSnapshot ^ ExpandSpans(Microsoft::VisualStudio::Text::NormalizedSpanCollection ^ spansToExpand);
public Microsoft.VisualStudio.Text.Projection.IProjectionSnapshot ExpandSpans (Microsoft.VisualStudio.Text.NormalizedSpanCollection spansToExpand);
abstract member ExpandSpans : Microsoft.VisualStudio.Text.NormalizedSpanCollection -> Microsoft.VisualStudio.Text.Projection.IProjectionSnapshot
Public Function ExpandSpans (spansToExpand As NormalizedSpanCollection) As IProjectionSnapshot

Parameters

spansToExpand
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.

Returns

An IProjectionSnapshot.

Exceptions

spansToExpand is null.

The end of the final spans in spansToExpand is greater than SourceBuffer.CurrentSnapshot.Length.

Applies to