# LoadOptions Class

> LoadOptions class in the TX Sheet Control .NET API: Reusable format-specific load settings, with cancellation supplied separately per operation.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Class
- **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)
- **Derived:** `TXTextControl.TXSheetControl.Server.TabularLoadOptions`
- **Path:** TX Sheet Control > API Reference > .NET API > TXTextControl.TXSheetControl.Server > LoadOptions Class
- **823 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/loadoptions/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/loadoptions/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/loadoptions/llms-full.txt

---

Reusable format-specific load settings, with cancellation supplied separately per operation.

### Syntax

```csharp
public class LoadOptions
```

### Members

#### Constructors

| Constructor | Description |
|---|---|
| [Constructor](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/loadoptions/constructor/llms-full.txt) |  |

#### Properties

| Property | Description |
|---|---|
| [InternalWorkbookFormat](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/loadoptions/internalworkbookformat-property/llms-full.txt) |  |
| [SpreadsheetML](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/loadoptions/spreadsheetml-property/llms-full.txt) |  |

### Examples

Load an application-supplied workbook with these conversion settings, edit and format its heading, and return a PDF of the result.

```csharp
using TXTextControl.TXSheetControl.Server;

async Task<byte[]> CreateConfiguredLoadOptionsReportAsync(ServerSheetControl control, byte[] originalDocument)
{
    var settings = new LoadOptions();
    await control.LoadAsync(originalDocument, StreamType.SpreadsheetML, settings);

    var sheet = await control.Workbook.Sheets.AtAsync(0);
    await sheet.Cell("A1").SetTextAsync("Reviewed invoice");
    await sheet.Cell("A1").FormatAsync(new { fontFamily = "Liberation Sans", fontSize = 16, bold = true, textColor = "#ffffff", fillColor = "#163b63" });
    return await control.SaveAsync(StreamType.PDF, new SaveOptions { OmitDashboards = true });
}
```

### See Also

- [TXTextControl.TXSheetControl.Server Namespace](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/llms-full.txt)
- [Loading and Saving Workbooks](https://docs.textcontrol.com/tx-sheet-control/document-processing/load-save/llms-full.txt)
- [OpenDocumentSpreadsheet](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/loadoptions/opendocumentspreadsheet-property/llms-full.txt): format-specific ODS settings.
- [Fonts](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/loadoptions/fonts-property/llms-full.txt): document font bytes and substitution policy.

---

## In This Section

- [LoadOptions Constructor](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/loadoptions/constructor/llms-full.txt): LoadOptions constructor in the TX Sheet Control .NET API, with its syntax, a C# example and remarks on awaiting tasks and handles.
- [LoadOptions.Fonts Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/loadoptions/fonts-property/llms-full.txt): LoadOptions.Fonts property in the TX Sheet Control .NET API: Font bytes and substitutions for this load or save, supplied right before LoadAsync or SaveAsync.
- [LoadOptions.InternalWorkbookFormat Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/loadoptions/internalworkbookformat-property/llms-full.txt): LoadOptions.InternalWorkbookFormat property in the TX Sheet Control .NET API, with its type NativeLoadOptions? and a C# example.
- [LoadOptions.OpenDocumentSpreadsheet Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/loadoptions/opendocumentspreadsheet-property/llms-full.txt): LoadOptions.OpenDocumentSpreadsheet property in the TX Sheet Control .NET API: ODS settings for LoadAsync; see OpenDocumentSpreadsheetLoadOptions.
- [LoadOptions.SpreadsheetML Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/loadoptions/spreadsheetml-property/llms-full.txt): LoadOptions.SpreadsheetML property in the TX Sheet Control .NET API, with its type SpreadsheetMLLoadOptions? and a C# example.

---

## Nearby

- **Previous:** [LicenseInfo.Type Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/licenseinfo/type-property/llms-full.txt)
- **Next:** [LoadOptions Constructor](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/loadoptions/constructor/llms-full.txt)
