ITextBuffer::GetReadOnlyExtents Method (Span)

 

Gets a list of read-only regions that overlap the given span.

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

NormalizedSpanCollection^ GetReadOnlyExtents(
	Span span
)

Parameters

span
Type: Microsoft.VisualStudio.Text::Span

The span to check for read-only regions.

Return Value

Type: Microsoft.VisualStudio.Text::NormalizedSpanCollection^

A NormalizedSpanCollection of read-only regions that overlap the given span.

Exception Condition
ArgumentNullException

span is null.

InvalidOperationException

TakeThreadOwnership has previously been called, and this call is being made from a different thread.

ArgumentOutOfRangeException

span is past the end of the buffer.

This method returns an empty list if there are no read-only regions overlapping the span, or if the span is zero-length.

Return to top
Show: