Share via


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

The position at which to begin deleting spans.

spansToDelete
Int32

The number of spans to delete.

Returns

An IProjectionSnapshot.

Exceptions

spansToDelete is less than zero or position + spansToDelete is greater than SpanCount.

Applies to