# SpreadsheetMLLoadOptions Class

> SpreadsheetMLLoadOptions class in the TX Sheet Control .NET API: Reusable XLSX package and projection budgets. Includes the syntax and a C# example.

- **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)
- **Path:** TX Sheet Control > API Reference > .NET API > TXTextControl.TXSheetControl.Server > SpreadsheetMLLoadOptions Class
- **1030 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/spreadsheetmlloadoptions/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/spreadsheetmlloadoptions/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/spreadsheetmlloadoptions/llms-full.txt

---

Reusable XLSX package and projection budgets; byte limits apply before expanding archive data.

### Syntax

```csharp
public class SpreadsheetMLLoadOptions
```

### Members

#### Constructors

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

#### Properties

| Property | Description |
|---|---|
| [AutoExpand](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/spreadsheetmlloadoptions/autoexpand-property/llms-full.txt) |  |
| [MaxColumns](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/spreadsheetmlloadoptions/maxcolumns-property/llms-full.txt) |  |
| [MaxEditableCells](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/spreadsheetmlloadoptions/maxeditablecells-property/llms-full.txt) |  |
| [MaxEntries](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/spreadsheetmlloadoptions/maxentries-property/llms-full.txt) |  |
| [MaxExpandedBytes](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/spreadsheetmlloadoptions/maxexpandedbytes-property/llms-full.txt) |  |
| [MaxFileBytes](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/spreadsheetmlloadoptions/maxfilebytes-property/llms-full.txt) |  |
| [MaxPartBytes](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/spreadsheetmlloadoptions/maxpartbytes-property/llms-full.txt) |  |
| [MaxRows](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/spreadsheetmlloadoptions/maxrows-property/llms-full.txt) |  |
| [MinColumns](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/spreadsheetmlloadoptions/mincolumns-property/llms-full.txt) |  |
| [MinRows](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/spreadsheetmlloadoptions/minrows-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[]> CreateConfiguredSpreadsheetMLLoadOptionsReportAsync(ServerSheetControl control, byte[] originalDocument)
{
    var settings = new SpreadsheetMLLoadOptions();
    await control.LoadAsync(originalDocument, StreamType.SpreadsheetML, new LoadOptions { 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)

---

## In This Section

- [SpreadsheetMLLoadOptions.AutoExpand Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/spreadsheetmlloadoptions/autoexpand-property/llms-full.txt): SpreadsheetMLLoadOptions.AutoExpand property in the TX Sheet Control .NET API, with its syntax, its type bool? and a C# example.
- [SpreadsheetMLLoadOptions Constructor](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/spreadsheetmlloadoptions/constructor/llms-full.txt): SpreadsheetMLLoadOptions constructor in the TX Sheet Control .NET API, with its syntax, a C# example and remarks on awaiting tasks and handles.
- [SpreadsheetMLLoadOptions.MaxColumns Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/spreadsheetmlloadoptions/maxcolumns-property/llms-full.txt): SpreadsheetMLLoadOptions.MaxColumns property in the TX Sheet Control .NET API, with its syntax, its type int? and a C# example.
- [SpreadsheetMLLoadOptions.MaxEditableCells Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/spreadsheetmlloadoptions/maxeditablecells-property/llms-full.txt): SpreadsheetMLLoadOptions.MaxEditableCells property in the TX Sheet Control .NET API, with its type int? and a C# example.
- [SpreadsheetMLLoadOptions.MaxEntries Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/spreadsheetmlloadoptions/maxentries-property/llms-full.txt): SpreadsheetMLLoadOptions.MaxEntries property in the TX Sheet Control .NET API, with its syntax, its type int? and a C# example.
- [SpreadsheetMLLoadOptions.MaxExpandedBytes Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/spreadsheetmlloadoptions/maxexpandedbytes-property/llms-full.txt): SpreadsheetMLLoadOptions.MaxExpandedBytes property in the TX Sheet Control .NET API, with its type long? and a C# example.
- [SpreadsheetMLLoadOptions.MaxFileBytes Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/spreadsheetmlloadoptions/maxfilebytes-property/llms-full.txt): SpreadsheetMLLoadOptions.MaxFileBytes property in the TX Sheet Control .NET API, with its syntax, its type long? and a C# example.
- [SpreadsheetMLLoadOptions.MaxPartBytes Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/spreadsheetmlloadoptions/maxpartbytes-property/llms-full.txt): SpreadsheetMLLoadOptions.MaxPartBytes property in the TX Sheet Control .NET API, with its syntax, its type long? and a C# example.
- [SpreadsheetMLLoadOptions.MaxRows Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/spreadsheetmlloadoptions/maxrows-property/llms-full.txt): SpreadsheetMLLoadOptions.MaxRows property in the TX Sheet Control .NET API, with its syntax, its type int? and a C# example.
- [SpreadsheetMLLoadOptions.MinColumns Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/spreadsheetmlloadoptions/mincolumns-property/llms-full.txt): SpreadsheetMLLoadOptions.MinColumns property in the TX Sheet Control .NET API, with its syntax, its type int? and a C# example.
- [SpreadsheetMLLoadOptions.MinRows Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/spreadsheetmlloadoptions/minrows-property/llms-full.txt): SpreadsheetMLLoadOptions.MinRows property in the TX Sheet Control .NET API, with its syntax, its type int? and a C# example.

---

## Nearby

- **Previous:** [SheetViewSettings.SplitRow Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/sheetviewsettings/splitrow-property/llms-full.txt)
- **Next:** [SpreadsheetMLLoadOptions Constructor](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/spreadsheetmlloadoptions/constructor/llms-full.txt)
