TextSpanHelper.StartsBeforeStartOf(TextSpan, TextSpan) Methode

Definition

Bestimmt, ob die erste Spanne vor dem Start der zweiten Spanne startet.

public:
 static bool StartsBeforeStartOf(Microsoft::VisualStudio::TextManager::Interop::TextSpan span1, Microsoft::VisualStudio::TextManager::Interop::TextSpan span2);
public:
 static bool StartsBeforeStartOf(Microsoft::VisualStudio::TextManager::Interop::TextSpan span1, Microsoft::VisualStudio::TextManager::Interop::TextSpan span2);
 static bool StartsBeforeStartOf(Microsoft::VisualStudio::TextManager::Interop::TextSpan span1, Microsoft::VisualStudio::TextManager::Interop::TextSpan span2);
public static bool StartsBeforeStartOf (Microsoft.VisualStudio.TextManager.Interop.TextSpan span1, Microsoft.VisualStudio.TextManager.Interop.TextSpan span2);
static member StartsBeforeStartOf : Microsoft.VisualStudio.TextManager.Interop.TextSpan * Microsoft.VisualStudio.TextManager.Interop.TextSpan -> bool
Public Shared Function StartsBeforeStartOf (span1 As TextSpan, span2 As TextSpan) As Boolean

Parameter

span1
TextSpan

[in] Das erste TextSpan-Objekt.

span2
TextSpan

[in] Das zweite TextSpan-Objekt.

Gibt zurück

Boolean

Gibt true zurück, wenn der Anfang von span1 kleiner ist als der Anfang von span2; andernfalls false.

Hinweise

Diese Methode ruft die StartsAfterStartOf -Methode auf und gibt das logische entgegengesetzte Ergebnis zurück. Verwenden Sie diese Methode, um zu bestimmen, ob die erste Spanne vor der zweiten Spanne liegt. Dieser Test bedeutet nicht, dass sich die beiden spannen überschneiden, sondern nur, dass der Anfang der ersten Spanne nach dem Start der zweiten Spanne liegt.

Gilt für