TX Text Control .NET Server

Section Property

Property|Introduced in 22.0
Namespace
TXTextControl.Web
Package
TXTextControl.Web as TXTextControl.Web.DocumentEditor.dll from nuget.org, the private NuGet feed or Text Control Offline Packages

Description

Returns 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.

Syntax

public int Section { get; }

Examples

The following example checks HeaderFooter.Section before continuing the web document workflow.

var configuredValue = headerFooter.Section;
Console.WriteLine($"Section used by Header Footer: {configuredValue}");

Limitations

Read only.