ConnectedToPrevious Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. Core. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesCore. dll
- Also in
TXTextControl.asTextControl. ASP. SDK 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; }Public Property ConnectedToPrevious As BooleanExamples
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;textControl.Sections.Add(SectionBreakKind.BeginAtNewPage, -1)
Dim secondSection As Section = textControl.Sections(2)
secondSection.HeadersAndFooters.Add(HeaderFooterType.Header)
Dim header As HeaderFooter =
secondSection.HeadersAndFooters.GetItem(HeaderFooterType.Header)
header.ConnectedToPrevious = False