TextSpanHelper.IsBeforeStartOf(TextSpan, Int32, Int32) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
确定给定的位置是否在给定范围开始之前发生。
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
参数
- line
- Int32
中要测试的位置的行索引。
- col
- Int32
中要测试的位置的列索引。
返回
true如果给定位置小于给定范围的起始位置,则返回; 否则返回 false 。
注解
使用此方法可以测试某个点是否在某个范围之前。