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 sections in the current document by using SectionCollection.Count.
SectionCollection sectionCollection = textControl.Sections;
sectionCollection.Add(SectionBreakKind.BeginAtNewPage, -1);
Console.WriteLine($"Count: {sectionCollection.Count}");
Console.WriteLine("Section Collection is ready for use.");Dim sectionCollection As SectionCollection = textControl.Sections
sectionCollection.Add(SectionBreakKind.BeginAtNewPage, -1)
Console.WriteLine($"Count: {sectionCollection.Count}")
Console.WriteLine("Section Collection is ready for use.")Limitations
Read only.