ITextBuffer.GetReadOnlyExtents(Span) ITextBuffer.GetReadOnlyExtents(Span) ITextBuffer.GetReadOnlyExtents(Span) Method

Definition

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

public:
 Microsoft::VisualStudio::Text::NormalizedSpanCollection ^ GetReadOnlyExtents(Microsoft::VisualStudio::Text::Span span);
public Microsoft.VisualStudio.Text.NormalizedSpanCollection GetReadOnlyExtents (Microsoft.VisualStudio.Text.Span span);
abstract member GetReadOnlyExtents : Microsoft.VisualStudio.Text.Span -> Microsoft.VisualStudio.Text.NormalizedSpanCollection
Parameters
span
Span Span Span

The span to check for read-only regions.

Returns
Exceptions

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

Remarks

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

Applies to