IElisionBuffer.ModifySpans Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Exceptions
The end of the final spans in spansToElide
or
spansToExpand
is greater than SourceBuffer.CurrentSnapshot.Length.