# RibbonOptions Class

> RibbonOptions class in the .NET API: Screen-only ribbon configuration, using the language-independent built-in item IDs from the JavaScript API.

- **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.IEquatable<TXTextControl.TXSheetControl.Blazor.RibbonOptions>`
- **Path:** TX Sheet Control > API Reference > .NET API > TXTextControl.TXSheetControl.Blazor > RibbonOptions Class
- **922 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-blazor/ribbonoptions/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-blazor/ribbonoptions/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-blazor/ribbonoptions/llms-full.txt

---

Screen-only ribbon configuration, using the language-independent built-in item IDs from the JavaScript API.

### Syntax

```csharp
public class RibbonOptions
```

### Members

| Member | Description |
|---|---|
| [Constructor](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-blazor/ribbonoptions/constructor/llms-full.txt) | Creates RibbonOptions settings or event data for the component. |
| [Buttons](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-blazor/ribbonoptions/buttons-property/llms-full.txt) | Policies keyed by command ID, such as home.font.bold. |
| [DisplayMode](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-blazor/ribbonoptions/displaymode-property/llms-full.txt) | Command display mode: expanded or tabs-only. |
| [Groups](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-blazor/ribbonoptions/groups-property/llms-full.txt) | Policies keyed by group ID, such as home.font. |
| [Layout](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-blazor/ribbonoptions/layout-property/llms-full.txt) | Command density: classic or compact. Omitted patches preserve the current layout. |
| [Tabs](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-blazor/ribbonoptions/tabs-property/llms-full.txt) | Policies keyed by tab ID, such as home or insert. |

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

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

- [RibbonOptions.Buttons Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-blazor/ribbonoptions/buttons-property/llms-full.txt): RibbonOptions.Buttons property in the TX Sheet Control .NET API: Policies keyed by command ID, such as home.font.bold, to hide or disable ribbon buttons.
- [RibbonOptions Constructor](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-blazor/ribbonoptions/constructor/llms-full.txt): RibbonOptions constructor in the TX Sheet Control .NET API: Creates RibbonOptions for configuring the browser spreadsheet component.
- [RibbonOptions.DisplayMode Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-blazor/ribbonoptions/displaymode-property/llms-full.txt): RibbonOptions.DisplayMode property in the TX Sheet Control .NET API: Command display mode of the Blazor editor ribbon, expanded or tabs-only, as a string.
- [RibbonOptions.Groups Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-blazor/ribbonoptions/groups-property/llms-full.txt): RibbonOptions.Groups property in the TX Sheet Control .NET API: Policies keyed by group ID, such as home.font, to hide or disable ribbon groups.
- [RibbonOptions.Layout Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-blazor/ribbonoptions/layout-property/llms-full.txt): RibbonOptions.Layout property in the TX Sheet Control .NET API: Command density, classic or compact; omitted patches preserve the current ribbon layout.
- [RibbonOptions.Tabs Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-blazor/ribbonoptions/tabs-property/llms-full.txt): RibbonOptions.Tabs property in the TX Sheet Control .NET API: Policies keyed by tab ID, such as home or insert, to hide or disable ribbon tabs.

---

## Nearby

- **Previous:** [RibbonItemOptions.Visible Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-blazor/ribbonitemoptions/visible-property/llms-full.txt)
- **Next:** [RibbonOptions Constructor](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-blazor/ribbonoptions/constructor/llms-full.txt)
