IProjectionBuffer::DeleteSpans Method (Int32, Int32)

 

Deletes a sequence of source spans from the projection buffer.

Namespace:   Microsoft.VisualStudio.Text.Projection
Assembly:  Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)

IProjectionSnapshot^ DeleteSpans(
	int position,
	int spansToDelete
)

Parameters

position
Type: System::Int32

The position at which to begin deleting spans.

spansToDelete
Type: System::Int32

The number of spans to delete.

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.

Return to top
Show: