TX Text Control .NET for Windows Forms

Type Property

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

Description

Gets the type of the header or footer. It is a value of the HeaderFooterType enumeration.

Syntax

public HeaderFooterType Type { get; }

Members

ValueDescription
HeaderThe object represents a header. When an even header exists the object represents the odd header. Otherwise it represents the header of all pages.
FirstPageHeaderThe object represents a special header of the document's or section's first page.
FooterThe object represents a footer. When an even footer exists the object represents the odd footer. Otherwise it represents the footer of all pages.
FirstPageFooterThe object represents a special footer of the document's or section's first page.
EvenHeaderThe object represents an even header.
EvenFooterThe object represents an even footer.

Examples

The following example verifies that the retrieved text part is the default header before updating it.

HeaderFooterCollection headers = textControl.Sections[1].HeadersAndFooters;
headers.Add(HeaderFooterType.Header);
HeaderFooter headerFooter = headers.GetItem(HeaderFooterType.Header);
if (headerFooter.Type == HeaderFooterType.Header)
{
    headerFooter.Selection.Text = "Quarterly report";
}

Limitations

Read only.

Further Reading

  • Determine the Current Header or Footer –