Udostępnij za pośrednictwem


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
Public Function GetReadOnlyExtents (span As Span) As NormalizedSpanCollection

Parameters

span
Span

The span to check for read-only regions.

Returns

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

Exceptions

span is null.

span is past the end of the buffer.

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