IProjectionBuffer.DeleteSpans(Int32, Int32) IProjectionBuffer.DeleteSpans(Int32, Int32) IProjectionBuffer.DeleteSpans(Int32, Int32) IProjectionBuffer.DeleteSpans(Int32, Int32) IProjectionBuffer.DeleteSpans(Int32, Int32) IProjectionBuffer.DeleteSpans(Int32, Int32) Method

Definition

Deletes a sequence of source spans from the projection buffer.

public:
 Microsoft::VisualStudio::Text::Projection::IProjectionSnapshot ^ DeleteSpans(int position, int spansToDelete);
public:
 Microsoft::VisualStudio::Text::Projection::IProjectionSnapshot ^ DeleteSpans(int position, int spansToDelete);
Microsoft::VisualStudio::Text::Projection::IProjectionSnapshot DeleteSpans(int position, int spansToDelete);
public Microsoft.VisualStudio.Text.Projection.IProjectionSnapshot DeleteSpans (int position, int spansToDelete);
abstract member DeleteSpans : int * int -> Microsoft.VisualStudio.Text.Projection.IProjectionSnapshot
Public Function DeleteSpans (position As Integer, spansToDelete As Integer) As IProjectionSnapshot
Parameters
position
Int32 Int32 Int32 Int32 Int32 Int32

The position at which to begin deleting spans.

spansToDelete
Int32 Int32 Int32 Int32 Int32 Int32

The number of spans to delete.

Returns
Exceptions

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.

Applies to