Share via


NormalizedSnapshotSpanCollection Klasse

Definition

Eine schreibgeschützte Auflistung von SnapshotSpan-Objekten, die alle aus der gleichen Momentaufnahme stammen.

public ref class NormalizedSnapshotSpanCollection sealed : System::Collections::Generic::ICollection<Microsoft::VisualStudio::Text::SnapshotSpan>, System::Collections::Generic::IEnumerable<Microsoft::VisualStudio::Text::SnapshotSpan>, System::Collections::Generic::IList<Microsoft::VisualStudio::Text::SnapshotSpan>, System::Collections::IList
public sealed class NormalizedSnapshotSpanCollection : System.Collections.Generic.ICollection<Microsoft.VisualStudio.Text.SnapshotSpan>, System.Collections.Generic.IEnumerable<Microsoft.VisualStudio.Text.SnapshotSpan>, System.Collections.Generic.IList<Microsoft.VisualStudio.Text.SnapshotSpan>, System.Collections.IList
type NormalizedSnapshotSpanCollection = class
    interface IList<SnapshotSpan>
    interface ICollection<SnapshotSpan>
    interface seq<SnapshotSpan>
    interface IEnumerable
    interface IList
    interface ICollection
Public NotInheritable Class NormalizedSnapshotSpanCollection
Implements ICollection(Of SnapshotSpan), IEnumerable(Of SnapshotSpan), IList, IList(Of SnapshotSpan)
Vererbung
NormalizedSnapshotSpanCollection
Implementiert

Hinweise

Die Momentaufnahme Spannen werden nach Startposition sortiert, wobei benachbarte und überlappende Spannen kombiniert werden.

Konstruktoren

NormalizedSnapshotSpanCollection()

Initialisiert eine leere NormalizedSnapshotSpanCollection.

NormalizedSnapshotSpanCollection(IEnumerable<SnapshotSpan>)

Initialisiert eine neue Instanz einer NormalizedSnapshotSpanCollection aus einer Liste von SnapshotSpan-Objekten.

NormalizedSnapshotSpanCollection(IList<SnapshotSpan>)

Initialisiert eine neue Instanz einer NormalizedSnapshotSpanCollection aus einer Liste von SnapshotSpan-Objekten.

NormalizedSnapshotSpanCollection(ITextSnapshot, IEnumerable<Span>)

Initialisiert eine neue instance eines NormalizedSnapshotSpanCollection aus einer Liste von Spans und einem ITextSnapshot.

NormalizedSnapshotSpanCollection(ITextSnapshot, IList<Span>)

Initialisiert eine neue instance eines NormalizedSnapshotSpanCollection aus einer Liste von Spans und einem ITextSnapshot.

NormalizedSnapshotSpanCollection(ITextSnapshot, NormalizedSpanCollection)

Initialisiert eine neue Instanz einer NormalizedSnapshotSpanCollection aus einer NormalizedSpanCollection und einem ITextSnapshot.

NormalizedSnapshotSpanCollection(ITextSnapshot, Span)

Eine schreibgeschützte Auflistung von SnapshotSpan-Objekten, die alle aus der gleichen Momentaufnahme stammen.

NormalizedSnapshotSpanCollection(SnapshotSpan)

Initialisiert eine neue Instanz einer NormalizedSnapshotSpanCollection mit einem einzelnen Element.

Felder

Empty

Eine schreibgeschützte Auflistung von SnapshotSpan-Objekten, die alle aus der gleichen Momentaufnahme stammen.

Eigenschaften

Count

Ruft die Anzahl der Spannen in der Auflistung ab.

Item[Int32]

Ruft die Momentaufnahmespanne an der angegebenen Position ab. Der Setter löst eine aus NotSupportedException.

Methoden

CloneAndTrackTo(ITextSnapshot, SpanTrackingMode)

Eine schreibgeschützte Auflistung von SnapshotSpan-Objekten, die alle aus der gleichen Momentaufnahme stammen.

Contains(Object)

Bestimmt, ob die Auflistung die angegebene Momentaufnahmespanne enthält.

Contains(SnapshotSpan)

Bestimmt, ob die Auflistung die angegebene Momentaufnahmespanne enthält.

CopyTo(Array, Int32)

Kopiert die Momentaufnahmespannen in dieser Auflistung in das angegebene Array, beginnend am angegebenen Index.

CopyTo(SnapshotSpan[], Int32)

Kopiert die Auflistung in ein Array von Momentaufnahme sich am angegebenen Speicherort erstreckt.

Difference(NormalizedSnapshotSpanCollection, NormalizedSnapshotSpanCollection)

Berechnet den Unterschied zwischen zwei normalisierten Momentaufnahme span-Auflistungen und normalisiert das Ergebnis.

Equals(Object)

Bestimmt, ob zwei Momentaufnahme span-Auflistungen gleich sind.

GetEnumerator()

Ruft einen Enumerator für die Auflistung ab.

GetHashCode()

Ruft einen Hash für die Auflistung ab.

IndexOf(Object)

Ruft den Index der angegebenen Momentaufnahmespanne ab.

IndexOf(SnapshotSpan)

Ruft den Index der angegebenen SnapshotSpan ab.

Intersection(NormalizedSnapshotSpanCollection, NormalizedSnapshotSpanCollection)

Berechnet die Schnittmenge zweier normalisierter Momentaufnahme span-Auflistungen und normalisiert das Ergebnis.

IntersectsWith(NormalizedSnapshotSpanCollection)

Bestimmt, ob sich diese Auflistung mit einer anderen normalisierten Auflistung von Momentaufnahmespannen überschneidet.

IntersectsWith(SnapshotSpan)

Bestimmt, ob sich diese Auflistung mit einer Momentaufnahme Überschneidungsspanne überschneidet.

Overlap(NormalizedSnapshotSpanCollection, NormalizedSnapshotSpanCollection)

Berechnet die Überlappung zweier normalisierter Momentaufnahme span-Auflistungen und normalisiert das Ergebnis.

OverlapsWith(NormalizedSnapshotSpanCollection)

Bestimmt, ob sich diese Auflistung mit einer anderen normalisierten Momentaufnahme span-Auflistung überlappt.

OverlapsWith(SnapshotSpan)

Bestimmt, ob sich diese Auflistung mit einer Momentaufnahme Überschneidungsspanne überschneidet.

ToString()

Konvertiert die Spans in eine Zeichenfolge.

Union(NormalizedSnapshotSpanCollection, NormalizedSnapshotSpanCollection)

Berechnet die Vereinigung von zwei Momentaufnahme span-Auflistungen und normalisiert das Ergebnis.

Operatoren

Equality(NormalizedSnapshotSpanCollection, NormalizedSnapshotSpanCollection)

Bestimmt, ob zwei NormalizedSnapshotSpanCollection-Objekte gleich sind.

Implicit(NormalizedSnapshotSpanCollection to NormalizedSpanCollection)

Konvertiert das angegebene NormalizedSnapshotSpanCollection-Element in ein NormalizedSpanCollection-Element.

Inequality(NormalizedSnapshotSpanCollection, NormalizedSnapshotSpanCollection)

Bestimmt, ob zwei NormalizedSnapshotSpanCollection unterschiedlich sind.

Explizite Schnittstellenimplementierungen

ICollection.IsSynchronized

Bestimmt, ob diese Auflistung synchronisiert ist.

ICollection.SyncRoot

Ruft ein Objekt ab, mit dem der Zugriff auf diese Auflistung synchronisiert werden kann.

ICollection<SnapshotSpan>.Add(SnapshotSpan)

Fügt der Auflistung eine Momentaufnahmespanne hinzu. Diese Methode löst eine NotSupportedException aus.

ICollection<SnapshotSpan>.Clear()

Löscht die Auflistung. Diese Methode löst eine NotSupportedException aus.

ICollection<SnapshotSpan>.IsReadOnly

Bestimmt, ob die Auflistung schreibgeschützt ist. Gibt immer true zurück.

ICollection<SnapshotSpan>.Remove(SnapshotSpan)

Entfernt die angegebene Spanne aus der Auflistung. Diese Methode löst eine NotSupportedException aus.

IEnumerable.GetEnumerator()

Ruft einen Enumerator für die Auflistung ab.

IList.Add(Object)

Fügt der Liste ein Objekt hinzu. Diese Methode löst eine NotSupportedException aus.

IList.Clear()

Löscht die Liste. Diese Methode löst eine NotSupportedException aus.

IList.Insert(Int32, Object)

Fügt an der angegebenen Position eine Momentaufnahmespanne in der Liste ein. Diese Methode löst eine NotSupportedException aus.

IList.IsFixedSize

Bestimmt, ob die Auflistung eine feste Größe aufweist. Gibt immer true zurück.

IList.IsReadOnly

Bestimmt, ob diese Auflistung schreibgeschützt ist. Diese Eigenschaft gibt immer true zurück.

IList.Item[Int32]

Ruft die Momentaufnahmespanne an der angegebenen Position ab. Der Setter löst eine aus NotSupportedException.

IList.Remove(Object)

Entfernt die angegebene Momentaufnahmespanne. Diese Methode löst eine NotSupportedException aus.

IList.RemoveAt(Int32)

Entfernt eine Momentaufnahmespanne an der angegebenen Position. Diese Methode löst eine NotSupportedException aus.

IList<SnapshotSpan>.Insert(Int32, SnapshotSpan)

Fügt eine Momentaufnahmespanne in der Liste ein. Diese Methode löst eine NotSupportedException aus.

IList<SnapshotSpan>.RemoveAt(Int32)

Entfernt eine Momentaufnahmespanne an der angegebenen Position. Diese Methode löst eine NotSupportedException aus.

Erweiterungsmethoden

EmptyIfNull<T>(IEnumerable<T>)

Gibt diese Enumeration zurück, falls sie nicht NULL ist. Wenn es NULL ist, geben Sie eine leere Enumeration zurück.

Gilt für: