SnapshotPoint.LessThan 运算符

确定左侧点的位置是否小于右侧点的位置。

命名空间:  Microsoft.VisualStudio.Text
程序集:  Microsoft.VisualStudio.Text.Data(在 Microsoft.VisualStudio.Text.Data.dll 中)

语法

声明
Public Shared Operator < ( _
    left As SnapshotPoint, _
    right As SnapshotPoint _
) As Boolean
public static bool operator <(
    SnapshotPoint left,
    SnapshotPoint right
)
public:
static bool operator <(
    SnapshotPoint left, 
    SnapshotPoint right
)
static let inline(<)
        left:SnapshotPoint * 
        right:SnapshotPoint  : bool
JScript 不支持重载运算符。

参数

返回值

类型:Boolean
true ,如果 left.Position 比 right.Position大,否则 false。

异常

异常 条件
ArgumentException

两个点不属于同一快照。

.NET Framework 安全性

请参阅

参考

SnapshotPoint 结构

Microsoft.VisualStudio.Text 命名空间