# Javascript: TXTextControl.FindOptions Enumeration

> Determines search options for the find method.

- **Product:** DS Server
- **Section:** Reference
- **Kind:** Enumeration
- **Introduced:** 28.0
- **Path:** DS Server > Reference > JavaScript API > Javascript: TXTextControl.FindOptions Enumeration
- **425 words**
- **Web URL:** https://docs.textcontrol.com/ds-server/reference/javascript/txtextcontrol/findoptions-enumeration/
- **LLMs URL:** https://docs.textcontrol.com/ds-server/reference/javascript/txtextcontrol/findoptions-enumeration/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/ds-server/reference/javascript/txtextcontrol/findoptions-enumeration/llms-full.txt

---

### Description

Determines search options for the [find](https://docs.textcontrol.com/ds-server/reference/javascript/formattedtext/find-method/llms-full.txt) method.

### Members

| Member | Description |
|---|---|
| Reverse | The search starts at the end of the control's document and searches to the beginning of the document. |
| MatchCase | Locates only instances of the search text that have the exact casing. |
| NoHighlight | The search text, if found, is not highlighted. |
| NoMessageBox | Does not display message boxes to inform about search results. |
| MatchWholeWord | Locates only instances of the search text which are whole words. |

### Examples

The following example uses `TXTextControl.FindOptions.Reverse` (the search starts at the end of the control's document and searches to the beginning of the document.) in a document-editing workflow.

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

TXTextControl.textParts.getMainText(function(formattedText) {
    formattedText.find(
        "Quarterly report",
        1,
        TXTextControl.FindOptions.Reverse,
        function(result) {
            console.log("find result:", result);
        },
        onTxError
    );
}, onTxError);
```

---

## Nearby

- **Previous:** [Javascript: TXTextControl.FileType Enumeration](https://docs.textcontrol.com/ds-server/reference/javascript/txtextcontrol/filetype-enumeration/llms-full.txt)
- **Next:** [Javascript: TXTextControl.flattenFormFields Method](https://docs.textcontrol.com/ds-server/reference/javascript/txtextcontrol/flattenformfields-method/llms-full.txt)
