# SpreadsheetMLLoadOptions.MinColumns Property

> SpreadsheetMLLoadOptions.MinColumns property in the TX Sheet Control .NET API, with its syntax, its type int? and a C# example.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Property
- **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 > SpreadsheetMLLoadOptions.MinColumns Property
- **671 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/spreadsheetmlloadoptions/mincolumns-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/spreadsheetmlloadoptions/mincolumns-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/spreadsheetmlloadoptions/mincolumns-property/llms-full.txt

---

### Syntax

```csharp
public int? MinColumns { get; init; }
```

### Property Value

`int?`.

### 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[]> CreateConfiguredSpreadsheetMLLoadOptionsMinColumnsAsync(ServerSheetControl control, byte[] originalDocument)
{
    var settings = new SpreadsheetMLLoadOptions()
    {
        MinColumns = 2
    };

    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 });
}
```

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

- [SpreadsheetMLLoadOptions Class](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/spreadsheetmlloadoptions/llms-full.txt)
- [Loading and Saving Workbooks](https://docs.textcontrol.com/tx-sheet-control/document-processing/load-save/llms-full.txt)

---

## Nearby

- **Previous:** [SpreadsheetMLLoadOptions.MaxRows Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/spreadsheetmlloadoptions/maxrows-property/llms-full.txt)
- **Next:** [SpreadsheetMLLoadOptions.MinRows Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/spreadsheetmlloadoptions/minrows-property/llms-full.txt)
