Lines Property
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)
property IList<DocumentLine^>^ Lines {
	IList<DocumentLine^>^ get ();

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: