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 comments in the current document by using CommentCollection.Count.
CommentCollection commentCollection = textControl.Comments;
textControl.Text = "Payment is due within 30 days.";
textControl.Select(0, textControl.Text.Length);
commentCollection.Add(new CommentedText("Verify the payment term."));
Console.WriteLine($"Count: {commentCollection.Count}");
Console.WriteLine("Comment Collection is ready for use.");Dim commentCollection As CommentCollection = textControl.Comments
textControl.Text = "Payment is due within 30 days."
textControl.Select(0, textControl.Text.Length)
commentCollection.Add(New CommentedText("Verify the payment term."))
Console.WriteLine($"Count: {commentCollection.Count}")
Console.WriteLine("Comment Collection is ready for use.")Limitations
Read only.