IProjectionBufferBase::Delete Method (Span)
Visual Studio 2015
Deletes a span of characters from the buffer.
Assembly: Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)
Parameters
- deleteSpan
-
Type:
Microsoft.VisualStudio.Text::Span
The span of characters to delete.
Return Value
Type: Microsoft.VisualStudio.Text.Projection::IProjectionSnapshot^| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException | deleteSpan.The end of the span is greater than the length of the buffer. |
| InvalidOperationException | A ITextEdit is currently active. |
This is a shortcut for creating a new ITextEdit object, using it to delete the text, and then applying it. If the deletion fails on account of a read-only region, the snapshot returned will be the same as the current snapshot of the buffer before the attempted deletion.
Show: