Javascript: TXTextControl.SectionBreakKind Enumeration
Description
Specifies the kind of a section break.
Members
| Member | Description |
|---|---|
| BeginAtNewLine | The section begins on the next line with a new paragraph. |
| BeginAtNewPage | The 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
);
}