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

定义

确定给定的位置是否包含在给定范围内,而不包括起始点和终结点。

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

参数

span
TextSpan

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

line
Int32

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

col
Int32

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

返回

Boolean

true如果给定的位置大于范围的开头并且小于范围的末尾,则返回。 false如果位置完全等于范围的开始或结束位置,则返回; 如果位置不在范围内,则返回。

注解

使用此方法来查看某个位置是否位于范围内,而不是位于范围的开始点或结束点。

适用于