An instance of the Line
public class LineCollection : ICollection, IEnumerablePublic Class LineCollection
Implements ICollection
Implements IEnumerable Introduced: 10.1.
The following example shows how to loop through all lines and how to get the according page number of that line.
foreach (TXTextControl.Line line in textControl1.Lines)
{
Console.WriteLine("Line " + line.Number.ToString() +
" is on page " + line.Page.ToString());
}For Each line As TXTextControl.Line In TextControl1.Lines
Console.WriteLine("Line " + line.Number.ToString() _
+ " is on page " + line.Page.ToString())
Next| Method | Description |
|---|---|
| Copy |
Copies the elements of the collection to an array, starting at a particular index. |
| Get |
Returns an enumerator that can be used to iterate through the collection. |
| Get |
Gets a particular line from the collection. |
| Property | Description |
|---|---|
| Count | Gets the number of elements contained in the collection. |
| Item | Gets the line from the collection. |