TextSpanHelper.IsBeforeStartOf(TextSpan, Int32, Int32) 方法

定义

确定给定的位置是否在给定范围开始之前发生。

public:
 static bool IsBeforeStartOf(Microsoft::VisualStudio::TextManager::Interop::TextSpan span, int line, int col);
public:
 static bool IsBeforeStartOf(Microsoft::VisualStudio::TextManager::Interop::TextSpan span, int line, int col);
 static bool IsBeforeStartOf(Microsoft::VisualStudio::TextManager::Interop::TextSpan span, int line, int col);
public static bool IsBeforeStartOf (Microsoft.VisualStudio.TextManager.Interop.TextSpan span, int line, int col);
static member IsBeforeStartOf : Microsoft.VisualStudio.TextManager.Interop.TextSpan * int * int -> bool
Public Shared Function IsBeforeStartOf (span As TextSpan, line As Integer, col As Integer) As Boolean

参数

span
TextSpan

TextSpan 要对其进行测试的对象。

line
Int32

中要测试的位置的行索引。

col
Int32

中要测试的位置的列索引。

返回

Boolean

true如果给定位置小于给定范围的起始位置,则返回; 否则返回 false

注解

使用此方法可以测试某个点是否在某个范围之前。

适用于