TX Text Control .NET Server

Javascript: TXTextControl.RulerBarFormulaMode Enumeration

Enumeration|Introduced in 30.0

Description

Specifies whether a ruler bar shows cell references when the current input position is in a table cell.

Members

MemberDescription
NoneDefault. The ruler bar does not show cell references.
AutoThe ruler bar only shows cell references when the text input position is in a table cell containing a formula.
AlwaysThe ruler bar shows cell references when the text input position is in a table call. When the input position changes to another cell, all references are shown relative to this new cell.
FixedThe ruler bar shows cell references relative to the cell which contains the text input position when this mode is switched on. When the input position changes to another cell, all references remain relative to the first cell.

Examples

The following example uses TXTextControl.RulerBarFormulaMode.Auto (the ruler bar only shows cell references when the text input position is in a table cell containing a formula.) in a document-editing workflow.

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

TXTextControl.rulerBar.setFormulaMode(
    TXTextControl.RulerBarFormulaMode.Auto,
    function() {
        console.log("set formula mode completed.");
    },
    onTxError
);