ITextBuffer::IsReadOnly Method (Span)
Visual Studio 2015
Determines whether a text modification or deletion would be prohibited at span due to an IReadOnlyRegion.
Assembly: Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)
Parameters
- span
-
Type:
Microsoft.VisualStudio.Text::Span
The span to check.
Return Value
Type: System::Booleantrue if the entire span could be deleted or replaced, otherwise false.
| Exception | Condition |
|---|---|
| ArgumentNullException | span is null. |
| InvalidOperationException | TakeThreadOwnership has previously been called, and this call is being made from a different thread. |
| ArgumentOutOfRangeException | The End property of span is greater than the length of CurrentSnapshot. |
Show: