DS Server

Javascript: TXTextControl.FormulaReferenceStyle Enumeration

Enumeration|Introduced in 28.0

Description

Specifies the style of references to table cells in formulas.

Members

MemberDescription
A1A table cell in formulas is addressed with a column letter and a row number
R1C1A table cell in formulas is addressed with a column number and a row number.

Examples

The following example uses TXTextControl.FormulaReferenceStyle.A1 (a table cell in formulas is addressed with a column letter and a row number.) in a document-editing workflow.

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

TXTextControl.setFormulaReferenceStyle(
    TXTextControl.FormulaReferenceStyle.A1,
    function() {
        console.log("set formula reference style completed.");
    },
    onTxError
);