TX Text Control .NET for WPF

HeadersAndFooters Property

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

Description

Gets a collection of all headers and footers of the section. The property's value is an object of the type HeaderFooterCollection.

Syntax

public HeaderFooterCollection HeadersAndFooters { get; }

Examples

The following example works with the first section of the current document by using Section.HeadersAndFooters.

Section section = textControl.Sections[1];

foreach (HeaderFooter headerFooter in section.HeadersAndFooters)
{
    Console.WriteLine(headerFooter.ConnectedToPrevious);
}

Limitations

Read only.