IProjectionBuffer::InsertSpan Method (Int32, String^)
Visual Studio 2015
Inserts a literal string into the list of source spans.
Assembly: Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)
Parameters
- position
-
Type:
System::Int32
The position at which to insert literalSpanToInsert.
- literalSpanToInsert
-
Type:
System::String^
The string to insert.
Return Value
Type: Microsoft.VisualStudio.Text.Projection::IProjectionSnapshot^| Exception | Condition |
|---|---|
| ArgumentNullException | literalSpanToInsert is null. These checks are not performed if the projection buffer was created with the PermissiveEdgeInclusiveSourceSpans option. |
| ArgumentOutOfRangeException | position is less than zero or greater than the number of spans. |
Show: