TX Text Control .NET for WPF

Count Property

Property
Namespace
TXTextControl
Package
TXTextControl.TextControl.WPF.SDK as TXTextControl.dll from the private NuGet feed or Text Control Offline Packages

Description

Gets the number of elements contained in the collection.

Syntax

public int Count { get; }

Examples

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);
}

Limitations

Read only.