# SheetControlOptions.Columns Property

> SheetControlOptions.Columns property in the TX Sheet Control .NET API: Initial worksheet column capacity, a mount setting changed only with a new component key.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Property
- **Namespace:** `TXTextControl.TXSheetControl.Blazor`
- **Package:** `TXTextControl.TXSheetControl.Blazor` (assembly `TXTextControl.TXSheetControl.Blazor.dll`, from the private NuGet feed or the supplied NuGet folder)
- **Path:** TX Sheet Control > API Reference > .NET API > TXTextControl.TXSheetControl.Blazor > SheetControlOptions > SheetControlOptions.Columns Property
- **680 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-blazor/sheetcontroloptions/columns-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-blazor/sheetcontroloptions/columns-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-blazor/sheetcontroloptions/columns-property/llms-full.txt

---

Initial worksheet column capacity.

### Syntax

```csharp
public int Columns { get; init; }
```

### Property Value

`int`. Initial worksheet column capacity.

### Examples

Configure the `Options` parameter before mounting the component. `license` is the unchanged store-issued license string.

```csharp
var options = new SheetControlOptions
{
    License = license,
    Rows = 2000, Columns = 20, AutoExpand = true, MaxRows = 10000, MaxColumns = 100,
    DashboardMode = "editor", ViewMode = "normal", Theme = "dark", Language = "en",
    Locale = "en-US", UserName = "Alex", Zoom = 125, HighlightDependents = true,
    FontCatalogURL = "fonts/catalog.json", FontBaseURL = "fonts/",
    Areas = new() { Ribbon = true, FormulaBar = true, SheetTabs = true, StatusBar = false },
    Ribbon = new()
    {
        Layout = "compact", DisplayMode = "expanded",
        Tabs = new Dictionary<string, RibbonItemOptions> { ["review"] = new() { Visible = true } },
        Groups = new Dictionary<string, RibbonItemOptions> { ["home.font"] = new() { Enabled = true } },
        Buttons = new Dictionary<string, RibbonItemOptions> { ["home.font.bold"] = new() { Enabled = false } }
    },
    Resources = new Dictionary<string, string> { ["ribbon.home"] = "Home" }
};
```

### Remarks

License, capacities, growth, dashboard policy, locale and font URLs are mount settings. Recreate with a new component key to change them. Other appearance options can be replaced by assigning a new record.

### See Also

- [SheetControlOptions](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-blazor/sheetcontroloptions/llms-full.txt).

---

## Nearby

- **Previous:** [SheetControlOptions.AutoExpand Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-blazor/sheetcontroloptions/autoexpand-property/llms-full.txt)
- **Next:** [SheetControlOptions.DashboardMode Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-blazor/sheetcontroloptions/dashboardmode-property/llms-full.txt)
