# Javascript: TXTextControl.RulerBarFormulaMode Enumeration

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

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Enumeration
- **Introduced:** 30.0
- **Path:** TX Text Control .NET Server > Reference > JavaScript API > Javascript: TXTextControl.RulerBarFormulaMode Enumeration
- **390 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/txtextcontrol/rulerbarformulamode-enumeration/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/txtextcontrol/rulerbarformulamode-enumeration/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/txtextcontrol/rulerbarformulamode-enumeration/llms-full.txt

---

### Description

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

### Members

| Member | Description |
|---|---|
| None | Default. The ruler bar does not show cell references. |
| Auto | The ruler bar only shows cell references when the text input position is in a table cell containing a formula. |
| Always | The 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. |
| Fixed | The 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.

```javascript
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
);
```

---

## Nearby

- **Previous:** [Javascript: TXTextControl.RulerBarBorderStyle Enumeration](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/txtextcontrol/rulerbarborderstyle-enumeration/llms-full.txt)
- **Next:** [Javascript: TXTextControl.RulerBarScaleUnit Enumeration](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/txtextcontrol/rulerbarscaleunit-enumeration/llms-full.txt)
