ITextBuffer::GetReadOnlyExtents Method (Span)
Visual Studio 2015
Gets a list of read-only regions that overlap the given span.
Assembly: Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)
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.
Show: