TX Text Control .NET Server

HeaderFooter Class

Class|Introduced in 22.0
Namespace
TXTextControl.Web
Package
TXTextControl.Web from nuget.org, the private NuGet feed or Text Control Offline Packages
Assembly
TXTextControl.Web.DocumentEditor.dll
Install
dotnet add package TXTextControl.Web
Inherits
  1. TextPart
  2. HeaderFooter
Implements
IFormattedText

Description

An instance of the Web.HeaderFooter class represents a header or footer in a Text Control document. The Web.HeaderFooter class inherits from the Web.TextPart class.

Syntax

public class HeaderFooter : TextPart

Examples

The following example inspects a Header Footer object supplied by the document workflow.

var currentValue = headerFooter.Section;
Console.WriteLine($"Section: {currentValue}");

Members

Properties

PropertyDescription
SectionReturns the number of the section to which the header or footer belongs. The sections of the document are numbered beginning with 1. This property returns zero, if the header or footer object does not represent a single header or footer.
SelectionGets or sets the current selection in a text part. The property value is an object of the type Web.Selection. For more information see the description of the Web.Selection class. (Inherited from TextPart.)
TypeGets the type of the header or footer. It is a value of the Web.HeaderFooterType enumeration.