# TXSheetControlOptions.Ribbon Property

> TXSheetControlOptions.Ribbon property in the TX Sheet Control .NET API, with its syntax, its type object? and a C# example.

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

---

Browser ribbon presentation and item policies serialized by the Razor tag helper. Supply an anonymous object with camelCase browser option names; the mounted editor validates its values and IDs.

### Syntax

```csharp
public object? Ribbon { get; set; }
```

### Examples

Pass these options to the `tx-sheet-control` tag helper to create a compact invoice editor.

```csharp
using System.Collections.Generic;
using TXTextControl.TXSheetControl.AspNetCore;

TXSheetControlOptions CreateInvoiceOptions() => new() {
    Ribbon = new {
        layout = "compact",
        displayMode = "expanded",
        tabs = new { reporting = new { enabled = false } },
        buttons = new Dictionary<string, object> {
            ["home.font.bold"] = new { enabled = false }
        }
    }
};
```

### Remarks

The default is classic, expanded presentation. These options customize browser controls without restricting workbook operations. See the [Ribbon Guide](https://docs.textcontrol.com/tx-sheet-control/spreadsheet-editor/ribbon/llms-full.txt) for stable IDs and runtime changes.

---

## Nearby

- **Previous:** [TXSheetControlOptions.ViewMode Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-aspnetcore/txsheetcontroloptions/viewmode-property/llms-full.txt)
- **Next:** [TXSheetControlTagHelper Class](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-aspnetcore/txsheetcontroltaghelper/llms-full.txt)
