TX Text Control .NET Server

ConnectedToPrevious Property

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

Description

Gets or sets a value specifying whether the header or footer is connected with the header or footer of the previous section. If headers or footers are connected, they have always the same contents.

Syntax

public bool ConnectedToPrevious { get; set; }

Examples

The following example creates a second section and gives it a header that is independent of the preceding section.

textControl.Sections.Add(SectionBreakKind.BeginAtNewPage, -1);
Section secondSection = textControl.Sections[2];
secondSection.HeadersAndFooters.Add(HeaderFooterType.Header);

HeaderFooter header =
    secondSection.HeadersAndFooters.GetItem(HeaderFooterType.Header);
header.ConnectedToPrevious = false;