[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Inserts a list of ITrackingSpan objects and/or literal strings into the list of source spans in the order in which they appear in the list.
Assembly: Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)
- Type: System.Int32
The position at which to insert the spans.
Return ValueType: Microsoft.VisualStudio.Text.Projection.IProjectionSnapshot
spansToInsert is null or a span in that list is null.
position is less than zero or greater than the number of spans.
An element of spansToInsert is neither an ITrackingSpan nor a string.
A span in spansToInsert would cause a duplicated projection.
A tracking span in spansToInsert is EdgeInclusive and does not cover its entire buffer, or is EdgePositive and does not abut the end of its buffer, or is EdgeNegative and does not abut the beginning of its buffer.
These checks are not performed if the projection buffer was created with the PermissiveEdgeInclusiveSourceSpans option.
Adding one of the text buffers containing any of the spansToInsert would create a cycle among a set of projection buffers.
- 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.