# BlazorSheetControl Class

> BlazorSheetControl class in the TX Sheet Control .NET API: Browser document host implementing the same typed Workbook API as ServerSheetControl.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Class
- **Namespace:** `TXTextControl.TXSheetControl.Blazor`
- **Package:** `TXTextControl.TXSheetControl.Blazor` (assembly `TXTextControl.TXSheetControl.Blazor.dll`, from the private NuGet feed or the supplied NuGet folder)
- **Implements:** `System.IAsyncDisposable`, `TXTextControl.TXSheetControl.Server.ISheetControl`
- **Path:** TX Sheet Control > API Reference > .NET API > TXTextControl.TXSheetControl.Blazor > BlazorSheetControl Class
- **1222 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-blazor/blazorsheetcontrol/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-blazor/blazorsheetcontrol/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-blazor/blazorsheetcontrol/llms-full.txt

---

Browser document host implementing the same typed Workbook API as ServerSheetControl. Use after the component Ready event.

### Syntax

```csharp
public class BlazorSheetControl
```

### Members

| Member | Description |
|---|---|
| [BatchAsync](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-blazor/blazorsheetcontrol/batchasync-method/llms-full.txt) | Applies collected workbook commands as one atomic undoable transaction. |
| [DisposeAsync](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-blazor/blazorsheetcontrol/disposeasync-method/llms-full.txt) | Releases the editor, its event subscriptions and this instance's callback reference. Safe to call repeatedly. |
| [Events](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-blazor/blazorsheetcontrol/events-property/llms-full.txt) | Shared completed workbook notifications. Browser events cannot synchronously cancel an edit. |
| [GetLicenseInfoAsync](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-blazor/blazorsheetcontrol/getlicenseinfoasync-method/llms-full.txt) | Reads current signed license metadata, including the current trial deadline state. |
| [GetPrintLayoutAsync](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-blazor/blazorsheetcontrol/getprintlayoutasync-method/llms-full.txt) | Calculates detached print layout metadata for the selected worksheet. |
| [GetSelectionAsync](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-blazor/blazorsheetcontrol/getselectionasync-method/llms-full.txt) | Reads detached current screen selection. |
| [GetUserNameAsync](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-blazor/blazorsheetcontrol/getusernameasync-method/llms-full.txt) | Reads the current comment author using the same signature as ServerSheetControl. |
| [GetWarningsAsync](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-blazor/blazorsheetcontrol/getwarningsasync-method/llms-full.txt) | Reads text from retained XLSX conversion notices. |
| [GetXlsxWarningsAsync](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-blazor/blazorsheetcontrol/getxlsxwarningsasync-method/llms-full.txt) | Reads detached XLSX conversion notices from the browser document. |
| [LoadAsync](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-blazor/blazorsheetcontrol/loadasync-method/llms-full.txt) | Loads copied binary input atomically. The caller retains ownership of the byte array. |
| [LoadTextAsync](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-blazor/blazorsheetcontrol/loadtextasync-method/llms-full.txt) | Loads UTF-8 CSV, XML or JSON text with the same reusable options as the server API. |
| [MergeAsync](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-blazor/blazorsheetcontrol/mergeasync-method/llms-full.txt) | Merges application data into this document through the shared engine. |
| [SaveAsync](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-blazor/blazorsheetcontrol/saveasync-method/llms-full.txt) | Exports caller-owned bytes through Blazor streaming. PDF, XLSX, ODS and TXWB use the shared document engine. |
| [SaveTextAsync](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-blazor/blazorsheetcontrol/savetextasync-method/llms-full.txt) | Exports CSV, XML or JSON text. Binary formats require SaveAsync. |
| [SelectRangeAsync](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-blazor/blazorsheetcontrol/selectrangeasync-method/llms-full.txt) | Selects a worksheet-bound A1 range and scrolls it into view. Foreign handles are rejected. |
| [SetPrintContextAsync](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-blazor/blazorsheetcontrol/setprintcontextasync-method/llms-full.txt) | Sets print-field context for subsequent exports. |
| [SetUserNameAsync](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-blazor/blazorsheetcontrol/setusernameasync-method/llms-full.txt) | Sets a nonempty comment author for subsequent comments. |
| [Workbook](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-blazor/blazorsheetcontrol/workbook-property/llms-full.txt) | Shared typed document API. Handles become stale after loading a replacement workbook. |

### Examples

The `control` variable is the host received by `Ready`. File examples use caller-provided `xlsxBytes`.

```csharp
var sheet = await control.Workbook.Sheets.AtAsync(0);
await sheet.Cell("A1").SetValueAsync("Orders");
await sheet.Cell("B2").SetValueAsync(8);
await sheet.Cell("D2").SetFormulaAsync("=B2*12");
```

### Remarks

Use the component only after interactive rendering. Browser document operations execute in the editor through JavaScript interop. Completed notifications cannot synchronously cancel edits.

### See Also

- [Blazor Tutorial](https://docs.textcontrol.com/tx-sheet-control/getting-started/spreadsheet-editor/blazor/llms-full.txt).

---

## In This Section

- [BlazorSheetControl.BatchAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-blazor/blazorsheetcontrol/batchasync-method/llms-full.txt): BlazorSheetControl.BatchAsync method in the TX Sheet Control .NET API: Applies collected workbook commands as one atomic undoable transaction.
- [BlazorSheetControl.DisposeAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-blazor/blazorsheetcontrol/disposeasync-method/llms-full.txt): BlazorSheetControl.DisposeAsync method in the TX Sheet Control .NET API: Releases the editor, its event subscriptions and this instance's callback reference.
- [BlazorSheetControl.Events Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-blazor/blazorsheetcontrol/events-property/llms-full.txt): BlazorSheetControl.Events property in the TX Sheet Control .NET API: Shared completed workbook notifications that cannot synchronously cancel an edit.
- [BlazorSheetControl.GetLicenseInfoAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-blazor/blazorsheetcontrol/getlicenseinfoasync-method/llms-full.txt): BlazorSheetControl.GetLicenseInfoAsync method in the .NET API: Reads current signed license metadata, including the current trial deadline state.
- [BlazorSheetControl.GetPrintLayoutAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-blazor/blazorsheetcontrol/getprintlayoutasync-method/llms-full.txt): BlazorSheetControl.GetPrintLayoutAsync method in the TX Sheet Control .NET API: Calculates detached print layout metadata for the selected worksheet.
- [BlazorSheetControl.GetSelectionAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-blazor/blazorsheetcontrol/getselectionasync-method/llms-full.txt): BlazorSheetControl.GetSelectionAsync method in the TX Sheet Control .NET API: Reads the current screen selection as a detached SelectionChangedEventArgs.
- [BlazorSheetControl.GetUserNameAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-blazor/blazorsheetcontrol/getusernameasync-method/llms-full.txt): BlazorSheetControl.GetUserNameAsync method in the TX Sheet Control .NET API: Reads the current comment author using the same signature as ServerSheetControl.
- [BlazorSheetControl.GetWarningsAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-blazor/blazorsheetcontrol/getwarningsasync-method/llms-full.txt): BlazorSheetControl.GetWarningsAsync method in the TX Sheet Control .NET API: Reads text from retained XLSX conversion notices.
- [BlazorSheetControl.GetXlsxWarningsAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-blazor/blazorsheetcontrol/getxlsxwarningsasync-method/llms-full.txt): BlazorSheetControl.GetXlsxWarningsAsync method in the TX Sheet Control .NET API: Reads detached XLSX conversion notices from the browser document.
- [BlazorSheetControl.LoadAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-blazor/blazorsheetcontrol/loadasync-method/llms-full.txt): BlazorSheetControl.LoadAsync method in the TX Sheet Control .NET API: Loads copied binary input atomically; the caller retains ownership of the byte array.
- [BlazorSheetControl.LoadTextAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-blazor/blazorsheetcontrol/loadtextasync-method/llms-full.txt): BlazorSheetControl.LoadTextAsync method in the TX Sheet Control .NET API: Loads UTF-8 CSV, XML or JSON text with the same reusable options as the server API.
- [BlazorSheetControl.MergeAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-blazor/blazorsheetcontrol/mergeasync-method/llms-full.txt): BlazorSheetControl.MergeAsync method in the TX Sheet Control .NET API: Merges application data into this document through the shared engine.
- [BlazorSheetControl.SaveAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-blazor/blazorsheetcontrol/saveasync-method/llms-full.txt): BlazorSheetControl.SaveAsync method in the TX Sheet Control .NET API: Exports caller-owned bytes through Blazor streaming.
- [BlazorSheetControl.SaveTextAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-blazor/blazorsheetcontrol/savetextasync-method/llms-full.txt): BlazorSheetControl.SaveTextAsync method in the TX Sheet Control .NET API: Exports CSV, XML or JSON text from the editor; binary formats require SaveAsync.
- [BlazorSheetControl.SelectRangeAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-blazor/blazorsheetcontrol/selectrangeasync-method/llms-full.txt): BlazorSheetControl.SelectRangeAsync method in the TX Sheet Control .NET API: Selects a worksheet-bound A1 range and scrolls it into view.
- [BlazorSheetControl.SetPrintContextAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-blazor/blazorsheetcontrol/setprintcontextasync-method/llms-full.txt): BlazorSheetControl.SetPrintContextAsync method in the TX Sheet Control .NET API: Sets print-field context for subsequent exports.
- [BlazorSheetControl.SetUserNameAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-blazor/blazorsheetcontrol/setusernameasync-method/llms-full.txt): BlazorSheetControl.SetUserNameAsync method in the TX Sheet Control .NET API: Sets a nonempty comment author for subsequent comments.
- [BlazorSheetControl.Workbook Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-blazor/blazorsheetcontrol/workbook-property/llms-full.txt): BlazorSheetControl.Workbook property in the TX Sheet Control .NET API: Shared typed document API; handles become stale after loading a replacement workbook.

---

## Nearby

- **Previous:** [TXTextControl.TXSheetControl.Blazor Namespace](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-blazor/llms-full.txt)
- **Next:** [BlazorSheetControl.BatchAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-blazor/blazorsheetcontrol/batchasync-method/llms-full.txt)
