DS Server

Javascript: SectionFormat.Attribute Enumeration

Enumeration|Introduced in 28.0

Description

Determines a certain section format attribute.

Members

MemberDescription
BreakKindSpecifies the attribute set through the BreakKind property.
LandscapeSpecifies the attribute set through the Landscape property.
ColumnsSpecifies the attribute set through the Columns property.
ColumnWidthsSpecifies the attribute set through the ColumnWidths property.
ColumnDistancesSpecifies the attribute set through the ColumnDistances property.
ColumnLineWidthSpecifies the attribute set through the ColumnLineWidth property.
ColumnLineColorSpecifies the attribute set through the ColumnLineColor property.
EqualColumnWidthSpecifies the attribute set through the EqualColumnWidth property.
RestartPageNumberingSpecifies the attribute set through the RestartPageNumbering property.
AllSpecifies all attributes of the SectionFormat.

Examples

The following example uses TXTextControl.Sectionformat.Attribute.BreakKind (specifies the attribute set through the BreakKind property.) in a document-editing workflow.

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

TXTextControl.selection.isCommonSectionFormatValueSelected(
    TXTextControl.Sectionformat.Attribute.BreakKind,
    function() {
        console.log("is common section format value selected completed.");
    },
    onTxError
);