VirtualSnapshotSpan.IsEmpty 属性

确定起点和终点是否位于同一位置。

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

语法

声明
Public ReadOnly Property IsEmpty As Boolean
public bool IsEmpty { get; }
public:
property bool IsEmpty {
    bool get ();
}
member IsEmpty : bool with get
function get IsEmpty () : boolean

属性值

类型:Boolean
true ,如果范围为空,则 false。

备注

由于起点和终点可以在虚拟空间,非虚拟范围这对应于可为非空,同时此属性返回 true。

.NET Framework 安全性

请参阅

参考

VirtualSnapshotSpan 结构

Microsoft.VisualStudio.Text 命名空间