TextSpanHelper.EndsBeforeEndOf(TextSpan, TextSpan) 方法

定义

确定第一个跨距是否在第二个范围结束之前结束。

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

参数

span1
TextSpan

中第一个 TextSpan 对象。

span2
TextSpan

中第二个 TextSpan 对象。

返回

Boolean

true如果的末尾 span1 小于或等于的末尾,则返回 span2 ; 否则返回 false

注解

此方法只比较范围的终点。 因此,此测试并不意味着这两个跨距相交,只是第一个跨度的结束发生在第二个范围结束时或之后。

适用于