TextSpanHelper.StartsBeforeStartOf(TextSpan, TextSpan) 方法

定义

确定第一个跨距是否从第一个范围的开始之前开始。

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

参数

span1
TextSpan

中第一个 TextSpan 对象。

span2
TextSpan

中第二个 TextSpan 对象。

返回

Boolean

true如果的开始小于的 span1 开头,则返回 span2 ; 否则返回 false

注解

此方法调用 StartsAfterStartOf 方法并返回逻辑相反的结果。 使用此方法来确定第一个范围是否发生在第一个范围之前。 此测试并不意味着两个跨距相交,只是在第一个范围的开始时间之后才会开始。

适用于