Count Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WinForms. SDK TXTextControl.from the private NuGet feed or Text Control Offline Packagesdll
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 text chars in the current document by using TextCharCollection.Count.
TextCharCollection textCharCollection = textControl.TextChars;
textControl.Text = "Quarterly results\nRevenue increased by 12%.";
Console.WriteLine($"Count: {textCharCollection.Count}");
Console.WriteLine("Text Char Collection is ready for use.");Dim textCharCollection As TextCharCollection = textControl.TextChars
textControl.Text = "Quarterly results" & vbCrLf & "Revenue increased by 12%."
Console.WriteLine($"Count: {textCharCollection.Count}")
Console.WriteLine("Text Char Collection is ready for use.")Limitations
Read only.