# SearchOptions Interface

> SearchOptions interface in the TX Sheet Control TypeScript API for the browser: Search options shared by the browser and pure server.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Interface
- **Path:** TX Sheet Control > API Reference > TypeScript API > Browser Editor > SearchOptions Interface
- **826 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/searchoptions/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/searchoptions/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/searchoptions/llms-full.txt

---

Search options shared by the browser and pure server; indices and result ordering are stable.

Package: `@txtextcontrol/tx-sheet-control`. Version: **2.0.0**.

Type-only declaration; it is not a JavaScript runtime constructor.

### Members

#### Properties

| Property | Description |
|---|---|
| [matchCase](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/searchoptions/matchcase-property/llms-full.txt) | The matchCase value of SearchOptions. |
| [matchWholeCell](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/searchoptions/matchwholecell-property/llms-full.txt) | The matchWholeCell value of SearchOptions. |
| [maxResults](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/searchoptions/maxresults-property/llms-full.txt) | The maxResults value of SearchOptions. |
| [query](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/searchoptions/query-property/llms-full.txt) | The query value of SearchOptions. |
| [range](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/searchoptions/range-property/llms-full.txt) | The range value of SearchOptions. |
| [sheetId](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/searchoptions/sheetid-property/llms-full.txt) | The sheetId value of SearchOptions. |
| [target](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/searchoptions/target-property/llms-full.txt) | The target value of SearchOptions. |
| [useRegularExpression](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/searchoptions/useregularexpression-property/llms-full.txt) | The useRegularExpression value of SearchOptions. |

### Examples

Use a fresh workbook. Create and format the sample data, apply this API and retain the returned document or result in your application. In the browser pass editor.workbook; in Node.js pass the server control.

```typescript
import type { Workbook } from '@txtextcontrol/tx-sheet-control';
import type { SearchOptions } from '@txtextcontrol/tx-sheet-control';

function createSearchOptionsReport(book: Workbook) {
    const sheet = book.sheets.at(0);
    sheet.cell('A1').setText('October invoice');
    sheet
        .cell('A1')
        .format({
            fontFamily: 'Liberation Sans',
            fontSize: 16,
            bold: true,
            textColor: '#ffffff',
            fillColor: '#163b63',
        });

    sheet.columns.at(0).setWidth({ pixels: 240 });
    sheet.range('B8:B9').setValues([[120], [80]]);
    sheet.cell('B10').setFormula('=SUM(B8:B9)');
    sheet.range('B8:B10').format({ numberFormatCode: '#,##0.00', fontSize: 11 });

    const searchSettings: SearchOptions = { query: 'Invoice', matchCase: false };
    return book.search.find(searchSettings);
}
```

### See Also

- [TypeScript Browser Editor API](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/llms-full.txt)
- [Workbooks and Worksheets](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/workbooks/llms-full.txt)

---

## In This Section

- [SearchOptions.matchCase Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/searchoptions/matchcase-property/llms-full.txt): SearchOptions.matchCase property in the TX Sheet Control TypeScript API for the browser, with its type boolean | undefined and a TypeScript example.
- [SearchOptions.matchWholeCell Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/searchoptions/matchwholecell-property/llms-full.txt): SearchOptions.matchWholeCell property in the TX Sheet Control TypeScript API for the browser, with its type boolean | undefined and a TypeScript example.
- [SearchOptions.maxResults Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/searchoptions/maxresults-property/llms-full.txt): SearchOptions.maxResults property in the TX Sheet Control TypeScript API for the browser, with its type number | undefined and a TypeScript example.
- [SearchOptions.query Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/searchoptions/query-property/llms-full.txt): SearchOptions.query property in the TX Sheet Control TypeScript API for the browser, with its type string and a TypeScript example.
- [SearchOptions.range Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/searchoptions/range-property/llms-full.txt): SearchOptions.range property in the TX Sheet Control TypeScript API for the browser, with its type string | undefined and a TypeScript example.
- [SearchOptions.sheetId Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/searchoptions/sheetid-property/llms-full.txt): SearchOptions.sheetId property in the TX Sheet Control TypeScript API for the browser, with its type string | undefined and a TypeScript example.
- [SearchOptions.target Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/searchoptions/target-property/llms-full.txt): SearchOptions.target property in the browser TypeScript API, with its type "formula" | "input" | "value" | "displayText" | undefined and a TypeScript example.
- [SearchOptions.useRegularExpression Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/searchoptions/useregularexpression-property/llms-full.txt): SearchOptions.useRegularExpression property in the TX Sheet Control TypeScript API for the browser, with its type boolean | undefined and a TypeScript example.

---

## Nearby

- **Previous:** [SearchMatch.text Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/searchmatch/text-property/llms-full.txt)
- **Next:** [SearchOptions.matchCase Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/searchoptions/matchcase-property/llms-full.txt)
