Поделиться через


ITextBuffer.GetReadOnlyExtents Method

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)

Syntax

'Декларация
Function GetReadOnlyExtents ( _
    span As Span _
) As NormalizedSpanCollection
NormalizedSpanCollection GetReadOnlyExtents(
    Span span
)
NormalizedSpanCollection^ GetReadOnlyExtents(
    Span span
)
abstract GetReadOnlyExtents : 
        span:Span -> NormalizedSpanCollection 
function GetReadOnlyExtents(
    span : Span
) : NormalizedSpanCollection

Parameters

Return Value

Type: Microsoft.VisualStudio.Text.NormalizedSpanCollection
A NormalizedSpanCollection of read-only regions that overlap the given span.

Exceptions

Exception Condition
ArgumentNullException

span is nulla null reference (Nothing in Visual Basic).

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.

Remarks

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

.NET Framework Security

See Also

Reference

ITextBuffer Interface

Microsoft.VisualStudio.Text Namespace