ITextEdit::Delete Method (Span)
Visual Studio 2015
Deletes a sequence 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: System::Booleantrue if the deletion succeeded, false if it was prevented by a read-only region.
| Exception | Condition |
|---|---|
| InvalidOperationException | |
| ArgumentOutOfRangeException | deleteSpan.End is greater than the length of the buffer. |
Deleting an empty span will succeed, but will not generate a new snapshot or raise a Changed event.
Show: