# SearchMatch Interface

> SearchMatch interface in the TX Sheet Control TypeScript API for the browser: Detached search match with its sheet identity and matched source text.

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

---

Detached search match with its sheet identity and matched source text.

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

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

### Members

#### Properties

| Property | Description |
|---|---|
| [address](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/searchmatch/address-property/llms-full.txt) | The address value of SearchMatch. |
| [index](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/searchmatch/index-property/llms-full.txt) | The index value of SearchMatch. |
| [length](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/searchmatch/length-property/llms-full.txt) | The length value of SearchMatch. |
| [sheetId](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/searchmatch/sheetid-property/llms-full.txt) | The sheetId value of SearchMatch. |
| [sheetName](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/searchmatch/sheetname-property/llms-full.txt) | The sheetName value of SearchMatch. |
| [text](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/searchmatch/text-property/llms-full.txt) | The text value of SearchMatch. |

### Examples

Create sample data and obtain this detached result from the owning document. Return the selected data to the report or application UI.

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

function createSearchMatchReport(book: Workbook) {
    const sheet = book.sheets.at(0);
    sheet.range('A7:D9').setValues([
        ['Description', 'Quantity', 'UnitPrice', 'Amount'],
        ['Consulting', 3, 120, 360],
        ['Training', 2, 90, 180],
    ]);

    const table = sheet.tables.add('InvoiceLines', 'A7:D9', {
        style: 'TableStyleMedium2',
        hasHeaderRow: true,
        showRowStripes: true,
    });

    const result = book.search.find({ query: 'Consulting' })[0];
    return result;
}
```

### 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

- [SearchMatch.address Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/searchmatch/address-property/llms-full.txt): SearchMatch.address property in the TX Sheet Control TypeScript API for the browser, with its type string and a TypeScript example.
- [SearchMatch.index Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/searchmatch/index-property/llms-full.txt): SearchMatch.index property in the TX Sheet Control TypeScript API for the browser, with its type number and a TypeScript example.
- [SearchMatch.length Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/searchmatch/length-property/llms-full.txt): SearchMatch.length property in the TX Sheet Control TypeScript API for the browser, with its type number and a TypeScript example.
- [SearchMatch.sheetId Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/searchmatch/sheetid-property/llms-full.txt): SearchMatch.sheetId property in the TX Sheet Control TypeScript API for the browser, with its type string and a TypeScript example.
- [SearchMatch.sheetName Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/searchmatch/sheetname-property/llms-full.txt): SearchMatch.sheetName property in the TX Sheet Control TypeScript API for the browser, with its type string and a TypeScript example.
- [SearchMatch.text Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/searchmatch/text-property/llms-full.txt): SearchMatch.text property in the TX Sheet Control TypeScript API for the browser, with its type string and a TypeScript example.

---

## Nearby

- **Previous:** [SaveOptions.embedUsedFonts Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/saveoptions/embedusedfonts-property/llms-full.txt)
- **Next:** [SearchMatch.address Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/searchmatch/address-property/llms-full.txt)
