IProjectionBuffer::DeleteSpans Method (Int32, Int32)
Visual Studio 2015
Deletes a sequence of source spans from the projection buffer.
Assembly: Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)
Parameters
- position
-
Type:
System::Int32
The position at which to begin deleting spans.
- spansToDelete
-
Type:
System::Int32
The number of spans to delete.
Return Value
Type: Microsoft.VisualStudio.Text.Projection::IProjectionSnapshot^| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException | position is less than zero or greater than the number of spans -or- spansToDelete is less than zero or position + spansToDelete is greater than the number of spans. |
Show: