# Search.FindAsync Method

> Search.FindAsync method in the TX Sheet Control .NET API: Returns stable worksheet/row-major matches; maxResults is bounded to protect large workbooks.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Method
- **Namespace:** `TXTextControl.TXSheetControl.Server`
- **Package:** `TXTextControl.TXSheetControl.Server` (assembly `TXTextControl.TXSheetControl.Api.dll`, from the private NuGet feed or the supplied NuGet folder)
- **Package:** `TXTextControl.TXSheetControl.Blazor` (assembly `TXTextControl.TXSheetControl.Api.dll`, from the private NuGet feed or the supplied NuGet folder)
- **Path:** TX Sheet Control > API Reference > .NET API > TXTextControl.TXSheetControl.Server > Search > Search.FindAsync Method
- **641 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/search/findasync-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/search/findasync-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/search/findasync-method/llms-full.txt

---

Returns stable worksheet/row-major matches; maxResults is bounded to protect large workbooks.

### Syntax

```csharp
public Task<SearchMatch[]> FindAsync(SearchOptions options, CancellationToken cancellationToken = default)
```

### Parameters

| Parameter | Type | Optional | Description |
|---|---|---|---|
| `options` | `SearchOptions` | No | Supported settings for this operation; omitted settings retain documented defaults. |
| `cancellationToken` | `CancellationToken` | Yes | Cancels waiting or execution as supported by this operation. |

### Return Value

`Task<SearchMatch[]>`.

### Examples

Create the sample document data first, then use Search.FindAsync. The returned value can be used by the calling report or application.

```csharp
using TXTextControl.TXSheetControl.Server;

async Task<SearchMatch[]> UseSearchFindAsync(ServerSheetControl control)
{
    var book = control.Workbook;
    var sheet = await book.Sheets.AtAsync(0);
    await sheet.Cell("A1").SetTextAsync("Consulting");

    var search = book.Search;

    var result = await search.FindAsync(new SearchOptions { MatchCase = false });
    return result;
}
```

### Remarks

Use the member with an instance or settings object from the documented package. Await task-returning operations. Document-bound handles must be resolved again after loading or deleting their owner.

### See Also

- [Search Class](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/search/llms-full.txt)
- [Workbooks and Worksheets](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/workbooks/llms-full.txt)
- [SearchMatch Class](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/searchmatch/llms-full.txt)
- [SearchOptions Class](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/searchoptions/llms-full.txt)

---

## Nearby

- **Previous:** [Search Class](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/search/llms-full.txt)
- **Next:** [Search.ReplaceAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/search/replaceasync-method/llms-full.txt)
