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 adds a default header only when the section has no header or footer definitions.
HeaderFooterCollection headersAndFooters = textControl.Sections[1].HeadersAndFooters;
if (headersAndFooters.Count == 0)
{
headersAndFooters.Add(HeaderFooterType.Header);
}Dim headersAndFooters As HeaderFooterCollection = textControl.Sections(1).HeadersAndFooters
If headersAndFooters.Count = 0 Then
headersAndFooters.Add(HeaderFooterType.Header)
End IfLimitations
Read only.