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 命名空间