Freigeben über


IElisionBuffer.ElideSpans(NormalizedSpanCollection) Method

Definition

Hides the text designated by spansToElide.

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

Parameters

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

Returns

A newly generated snapshot.

Exceptions

spansToElide is null.

The end of the final span in spansToElide is greater than SourceBuffer.CurrentSnapshot.Length.

Applies to