IElisionBuffer::ModifySpans Method (NormalizedSpanCollection^, NormalizedSpanCollection^)
Visual Studio 2015
Modifies the exposed text by hiding spansToElide and then expanding the specified spans in a single transaction.
Assembly: Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)
IProjectionSnapshot^ ModifySpans( NormalizedSpanCollection^ spansToElide, NormalizedSpanCollection^ spansToExpand )
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. This parameter may be null.
- spansToExpand
-
Type:
Microsoft.VisualStudio.Text::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.
Return Value
Type: Microsoft.VisualStudio.Text.Projection::IProjectionSnapshot^| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException | The end of the final spans in spansToElide or spansToExpand is greater than the length of the current snapshot of the SourceBuffer. |
Show: