共用方式為


TextSpanHelper.StartsBeforeStartOf(TextSpan, TextSpan) Method

Definition

Determines whether the first span starts before the start of the second span.

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

Parameters

span1
TextSpan

[in] The first TextSpan object.

span2
TextSpan

[in] The second TextSpan object.

Returns

Returns true if the start of span1 is less than the start of span2; otherwise, returns false.

Remarks

This method calls the StartsAfterStartOf method and returns the logical opposite result. Use this method to determine whether the first span occurs before the second span. This test does not mean the two spans intersect, only that the start of the first span occurs after the start of the second span.

Applies to