ITextBuffer.IsReadOnly Method (Span)

Determines whether a text modification or deletion would be prohibited at span due to an IReadOnlyRegion.

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

bool IsReadOnly(
	Span span
)

Parameters

span
Type: Microsoft.VisualStudio.Text.Span

The span to check.

Return Value

Type: System.Boolean
true if the entire span could be deleted or replaced, otherwise false.

ExceptionCondition
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.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft