AvalonEdit
Lines Property
NamespacesICSharpCode.AvalonEdit.DocumentTextDocumentLines
Gets a read-only list of lines.
Declaration Syntax
C#Visual BasicVisual C++
public IList<DocumentLine> Lines { get; }
Public ReadOnly Property Lines As IList(Of DocumentLine)
	Get
public:
property IList<DocumentLine^>^ Lines {
	IList<DocumentLine^>^ get ();
}
Remarks

The Lines collection contains one DocumentLine instance for every line in the document. This collection is read-only to user code and is automatically updated to reflect the current document content.

Internally, the DocumentLine instances are arranged in a binary tree that allows for both efficient updates and lookup. Converting between offset and line number is possible in O(lg N) time, and the data structure also updates all offsets in O(lg N) whenever a line is inserted or removed.

Assembly: ICSharpCode.AvalonEdit (Module: ICSharpCode.AvalonEdit.dll) Version: 5.0.0.4238