Gets a collection of all text lines contained in the main text of the document. The property value is an object of the type LineCollection.


public LineCollection Lines { get; }
Public ReadOnly Property Lines() As LineCollection


The following examples describes how to use the 'TXTextControl.MainText.Lines' property by storing it in a variable of the type 'TXTextControl.LineCollection'.

TXTextControl.MainText mainText = textControl1.TextParts.GetMainText();
TXTextControl.LineCollection MyMainTextLineColl = mainText.Lines;
Dim mainText As TXTextControl.MainText = TextControl1.TextParts.GetMainText()
Dim MyMainTextLineColl As TXTextControl.LineCollection = mainText.Lines


Read only.