IElisionBuffer::ElideSpans Method (NormalizedSpanCollection^)

 

Hides the text designated in the specified spans.

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

IProjectionSnapshot^ ElideSpans(
	NormalizedSpanCollection^ spansToElide
)

Parameters

spansToElide
Type: Microsoft.VisualStudio.Text::NormalizedSpanCollection^

The spans of text to hide with respect to the current snapshot of the source buffer.

It is not an error if some of the designated text is already hidden. These spans are converted to EdgeExclusive tracking spans.

Return Value

Type: Microsoft.VisualStudio.Text.Projection::IProjectionSnapshot^

A newly generated snapshot.

Exception Condition
ArgumentNullException

spansToElide is null.

ArgumentOutOfRangeException

The end of the final span in spansToElide is greater than the length of the current snapshot of the SourceBuffer.

Return to top
Show: