VirtualSnapshotSpan.Length 属性

范围的长度(包括虚拟空间)。

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

语法

声明
Public ReadOnly Property Length As Integer
public int Length { get; }
public:
property int Length {
    int get ();
}
member Length : int with get
function get Length () : int

属性值

类型:Int32
范围的长度。

备注

如果两个端点不位于虚空格,或者,如果只的起点。在虚拟空间,这与 SnapshotSpan.Length等效。 否则,它包括虚拟空间。

.NET Framework 安全性

请参阅

参考

VirtualSnapshotSpan 结构

Microsoft.VisualStudio.Text 命名空间