Item Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. Core. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesCore. dll
- Also in
TXTextControl.asTextControl. ASP. SDK TXTextControl.dll
Description
Gets the line from the collection. In C# this property is the indexer for the LineCollection class.
Syntax
public Line this[int number] { get; }Default Public ReadOnly Property Item(number As Integer) As LineExamples
The following example works with lines in the current document by using LineCollection.Item.
LineCollection lineCollection = textControl.Lines;
textControl.Text = "Quarterly results\nRevenue increased by 12%.";
Console.WriteLine($"Item: {lineCollection[10]}");
Console.WriteLine("Line Collection is ready for use.");Dim lineCollection As LineCollection = textControl.Lines
textControl.Text = "Quarterly results" & vbCrLf & "Revenue increased by 12%."
Console.WriteLine($"Item: {lineCollection.Item(10)}")
Console.WriteLine("Line Collection is ready for use.")Limitations
Read only.