IElisionBuffer.ModifySpans Method
Modifies the exposed text by hiding spansToElide and then expanding the specified spans in a single transaction.
Namespace: Microsoft.VisualStudio.Text.Projection
Assembly: Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)
Syntax
‘선언
Function ModifySpans ( _
spansToElide As NormalizedSpanCollection, _
spansToExpand As NormalizedSpanCollection _
) As IProjectionSnapshot
IProjectionSnapshot ModifySpans(
NormalizedSpanCollection spansToElide,
NormalizedSpanCollection spansToExpand
)
IProjectionSnapshot^ ModifySpans(
NormalizedSpanCollection^ spansToElide,
NormalizedSpanCollection^ spansToExpand
)
abstract ModifySpans :
spansToElide:NormalizedSpanCollection *
spansToExpand:NormalizedSpanCollection -> IProjectionSnapshot
function ModifySpans(
spansToElide : NormalizedSpanCollection,
spansToExpand : NormalizedSpanCollection
) : IProjectionSnapshot
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 nulla null reference (Nothing in Visual Basic).
- 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 nulla null reference (Nothing in Visual Basic).
Return Value
Type: Microsoft.VisualStudio.Text.Projection.IProjectionSnapshot
An IProjectionSnapshot.
Exceptions
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. |
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.