# RibbonItemOptions Class

> RibbonItemOptions class in the TX Sheet Control .NET API: Visibility and interaction policy for a built-in ribbon item; it does not restrict workbook APIs.

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

---

Visibility and interaction policy for a built-in ribbon item. This policy does not restrict workbook APIs.

### Syntax

```csharp
public class RibbonItemOptions
```

### Members

| Member | Description |
|---|---|
| [Constructor](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-blazor/ribbonitemoptions/constructor/llms-full.txt) | Creates RibbonItemOptions settings or event data for the component. |
| [Enabled](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-blazor/ribbonitemoptions/enabled-property/llms-full.txt) | Whether users can interact with the item. |
| [Visible](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-blazor/ribbonitemoptions/visible-property/llms-full.txt) | Whether the item appears in the ribbon and overflow menus. |

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

- [RibbonItemOptions Constructor](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-blazor/ribbonitemoptions/constructor/llms-full.txt): RibbonItemOptions constructor in the TX Sheet Control .NET API: Creates RibbonItemOptions for configuring the browser spreadsheet component.
- [RibbonItemOptions.Enabled Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-blazor/ribbonitemoptions/enabled-property/llms-full.txt): RibbonItemOptions.Enabled property in the TX Sheet Control .NET API: Whether users can interact with a built-in ribbon tab, group or button, as a nullable bool.
- [RibbonItemOptions.Visible Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-blazor/ribbonitemoptions/visible-property/llms-full.txt): RibbonItemOptions.Visible property in the TX Sheet Control .NET API: Whether the item appears in the ribbon and overflow menus.

---

## Nearby

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