ITextView.TextViewLines Property
Gets a read-only list of the ITextViewLine objects rendered in this view.
Namespace: Microsoft.VisualStudio.Text.Editor
Assembly: Microsoft.VisualStudio.Text.UI (in Microsoft.VisualStudio.Text.UI.dll)
Syntax
'Declaração
ReadOnly Property TextViewLines As ITextViewLineCollection
ITextViewLineCollection TextViewLines { get; }
property ITextViewLineCollection^ TextViewLines {
ITextViewLineCollection^ get ();
}
abstract TextViewLines : ITextViewLineCollection
function get TextViewLines () : ITextViewLineCollection
Property Value
Type: Microsoft.VisualStudio.Text.Editor.ITextViewLineCollection
The collection of text view lines.
Exceptions
Exception | Condition |
---|---|
InvalidOperationException | The view is in the process of being laid out. |
Remarks
This list will be dense, meaning that all the characters between the first character of the first ITextViewLine through the last character of the last ITextViewLine are represented in one of the ITextViewLine objects, except when the layout of the ITextViewLine objects is in progress.
ITextViewLine objects are disjoint, meaning that 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 are disposed of when the view recalculates its layout.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.