ITextBuffer::IsReadOnly Method (Int32, Boolean)
Visual Studio 2015
Determines whether a text insertion would be prohibited at the specified position due to an IReadOnlyRegion.
Assembly: Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)
Parameters
- position
-
Type:
System::Int32
The position of the proposed text insertion.
- isEdit
-
Type:
System::Boolean
true if this check is part of an edit. false for a query without side effects.
Return Value
Type: System::Booleantrue if an IReadOnlyRegion would prohibit insertions at this position, otherwise false.
| Exception | Condition |
|---|---|
| InvalidOperationException | TakeThreadOwnership has previously been called, and this call is being made from a different thread. |
| ArgumentOutOfRangeException | position is negative or greater than the length of CurrentSnapshot. |
Show: