Freigeben über


ITextView.TextViewLines Property

Definition

Gets a read-only list of the ITextViewLine objects rendered in this view.

public:
 property Microsoft::VisualStudio::Text::Editor::ITextViewLineCollection ^ TextViewLines { Microsoft::VisualStudio::Text::Editor::ITextViewLineCollection ^ get(); };
public Microsoft.VisualStudio.Text.Editor.ITextViewLineCollection TextViewLines { get; }
member this.TextViewLines : Microsoft.VisualStudio.Text.Editor.ITextViewLineCollection
Public ReadOnly Property TextViewLines As ITextViewLineCollection

Property Value

The collection of text view lines.

Exceptions

View is in the process of being laid out.

Remarks

This list will be dense. That is, all characters between the first character of the first ITextViewLine through the last character of the last ITextViewLine will be represented in one of the ITextViewLine objects, except when the layout of the ITextViewLine objects is in progress.

ITextViewLine objects are disjoint. That is, a given character is part of only one ITextViewLine.

The ITextViewLine objects are sorted by the index of their first character.

Some of the ITextViewLine objects may not be visible, and all ITextViewLine objects will be disposed of when the view recomputes its layout.

This property will be null during the view's initialization.

Applies to