NormalizedTextRangeCollection Class
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
A sorted list of TextRange values all referencing the same document snapshot. The ranges are non-empty, non-adjacent and non-overlapping.
public class NormalizedTextRangeCollection : System.Collections.Generic.IEnumerable<Microsoft.VisualStudio.Extensibility.Editor.TextRange>, System.Collections.Generic.IReadOnlyCollection<Microsoft.VisualStudio.Extensibility.Editor.TextRange>, System.Collections.Generic.IReadOnlyList<Microsoft.VisualStudio.Extensibility.Editor.TextRange>
type NormalizedTextRangeCollection = class
interface IReadOnlyList<TextRange>
interface IReadOnlyCollection<TextRange>
interface seq<TextRange>
interface IEnumerable
Public Class NormalizedTextRangeCollection
Implements IEnumerable(Of TextRange), IReadOnlyCollection(Of TextRange), IReadOnlyList(Of TextRange)
- Inheritance
-
NormalizedTextRangeCollection
- Implements
Count | Gets the number of elements in the collection. |
Item[Int32] | Gets the element at the specified index in the read-only list. |
Text |
Gets the document snapshot that all ranges in this collection reference. This is guaranteed to be non-null if the collection is not empty. |
Get |
Returns an enumerator that iterates through the collection. |
Intersect(IEnumerable<Text |
Intersects the current collection with another collection of ranges. |
Intersect(Normalized |
Intersects the current collection with another collection of ranges. |
Translate |
Translates the ranges in this collection to a new document snapshot. |
IEnumerable. |
Returns an enumerator that iterates through a collection. |
Empty |
Return this enumeration in case it is not null. In case it is null return empty enumeration. |
Produit | Versions |
---|---|
Visual Studio SDK | 2022 |