TX Text Control .NET Server

Javascript: TXTextControl.SectionBreakKind Enumeration

Enumeration|Introduced in 26.0

Description

Specifies the kind of a section break.

Members

MemberDescription
BeginAtNewLineThe section begins on the next line with a new paragraph.
BeginAtNewPageThe section begins on the next page with a new paragraph.

Examples

The following example uses TXTextControl.SectionBreakKind.BeginAtNewLine (the section begins on the next line with a new paragraph.) in a document-editing workflow.

function onTxError(error) {
    console.error("TX Text Control error:", error.msg);
    error.handled = true;
}

function applySectionBreakKind(sectionFormat) {
    sectionFormat.setBreakKind(
        TXTextControl.SectionBreakKind.BeginAtNewLine,
        function() {
            console.log("set break kind completed.");
        },
        onTxError
    );
}

Further Reading

  • Restart the Page Numbering Fields Per Section –
  • Inserting Columns Programmatically Using TX Text Control .NET –