Count Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WPF. 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 paragraphs in the current document by using ParagraphCollection.Count.
ParagraphCollection paragraphCollection = textControl.Paragraphs;
textControl.Text = "Quarterly results\nRevenue increased by 12%.";
Console.WriteLine($"Count: {paragraphCollection.Count}");
Console.WriteLine("Paragraph Collection is ready for use.");Dim paragraphCollection As ParagraphCollection = textControl.Paragraphs
textControl.Text = "Quarterly results" & vbCrLf & "Revenue increased by 12%."
Console.WriteLine($"Count: {paragraphCollection.Count}")
Console.WriteLine("Paragraph Collection is ready for use.")Limitations
Read only.