Compartir a través de


IElisionBuffer.ModifySpans Method

Definition

Modifies the exposed text by hiding spansToElide and then expanding spansToExpand in a single transaction.

public:
 Microsoft::VisualStudio::Text::Projection::IProjectionSnapshot ^ ModifySpans(Microsoft::VisualStudio::Text::NormalizedSpanCollection ^ spansToElide, Microsoft::VisualStudio::Text::NormalizedSpanCollection ^ spansToExpand);
public Microsoft.VisualStudio.Text.Projection.IProjectionSnapshot ModifySpans (Microsoft.VisualStudio.Text.NormalizedSpanCollection spansToElide, Microsoft.VisualStudio.Text.NormalizedSpanCollection spansToExpand);
abstract member ModifySpans : Microsoft.VisualStudio.Text.NormalizedSpanCollection * Microsoft.VisualStudio.Text.NormalizedSpanCollection -> Microsoft.VisualStudio.Text.Projection.IProjectionSnapshot
Public Function ModifySpans (spansToElide As NormalizedSpanCollection, spansToExpand 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. This parameter may be null.

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. This parameter may be null.

Returns

An IProjectionSnapshot.

Exceptions

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

Applies to