Count 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 number of elements contained in the collection.
Syntax
public int Count { get; }Public ReadOnly Property Count As IntegerExamples
The following example works with lines in the current document by using LineCollection.Count.
LineCollection lineCollection = textControl.Lines;
textControl.Text = "Quarterly results\nRevenue increased by 12%.";
Console.WriteLine($"Count: {lineCollection.Count}");
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($"Count: {lineCollection.Count}")
Console.WriteLine("Line Collection is ready for use.")Limitations
Read only.