共用方式為


ITextSnapshot.LineCount 屬性

取得快照中的行數。

命名空間:  Microsoft.VisualStudio.Text
組件:  Microsoft.VisualStudio.Text.Data (在 Microsoft.VisualStudio.Text.Data.dll 中)

語法

'宣告
ReadOnly Property LineCount As Integer
int LineCount { get; }
property int LineCount {
    int get ();
}
abstract LineCount : int with get
function get LineCount () : int

屬性值

類型:Int32
行數。

備註

快照集的Length是零就會被視為一條線。

.NET Framework 安全性

請參閱

參考

ITextSnapshot 介面

Microsoft.VisualStudio.Text 命名空間