共用方式為


ITextView.TextViewLines 屬性

取得呈現於此檢視中之 ITextViewLine 物件的唯讀清單。

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

語法

'宣告
ReadOnly Property TextViewLines As ITextViewLineCollection
ITextViewLineCollection TextViewLines { get; }
property ITextViewLineCollection^ TextViewLines {
    ITextViewLineCollection^ get ();
}
abstract TextViewLines : ITextViewLineCollection with get
function get TextViewLines () : ITextViewLineCollection

屬性值

類型:Microsoft.VisualStudio.Text.Editor.ITextViewLineCollection
文字檢視行的集合。

例外狀況

例外狀況 條件
InvalidOperationException

檢視正在進行配置。

備註

此清單將為密集的也就是說,第一的第一個字元之間的所有字元ITextViewLine到最後一個字元的最後ITextViewLine都出現在其中一個ITextViewLine物件,除非當版面配置的ITextViewLine物件正在進行中。

ITextViewLine物件是斷續的這表示指定的字元只有一部份的部分ITextViewLine

ITextViewLine物件按照其第一個字元的索引。 部分ITextViewLine物件可能會看不見,以及所有ITextViewLine的處置物件時檢視將會重新計算其版面配置。

.NET Framework 安全性

請參閱

參考

ITextView 介面

Microsoft.VisualStudio.Text.Editor 命名空間