# Ribbon.ReadOnly Property

> Gets or sets a value determining the ribbon's read only mode. When the ribbon is set to read only, it still shows all formatting attributes of the connected TextControl, but formatting attributes cannot be changed.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 24.0
- **Namespace:** `TXTextControl.Windows.Forms.Ribbon`
- **Package:** `TXTextControl.TextControl.WinForms.SDK` (assembly `TXTextControl.Windows.Forms.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.Windows.Forms.dll` from the setup
- **Path:** TX Text Control .NET for Windows Forms > Reference > TXTextControl.Windows.Forms.Ribbon > Ribbon.ReadOnly Property
- **311 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/ribbon/readonly-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/ribbon/readonly-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/ribbon/readonly-property/llms-full.txt

---

### Description

Gets or sets a value determining the ribbon's read only mode. When the ribbon is set to read only, it still shows all formatting attributes of the connected [TextControl](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/llms-full.txt), but formatting attributes cannot be changed.

### Syntax

```csharp
public bool ReadOnly { get; set; }
```

```vbnet
Public Property [ReadOnly] As Boolean
```

### Examples

The following example uses `Ribbon.ReadOnly` to prevent users from editing through the ribbon. The change is then applied to the active document or user interface.

```csharp
ribbon.ReadOnly = true;
ribbon.Update();
```

```vbnet
ribbon.ReadOnly = True
ribbon.Update()
```

---

## Nearby

- **Previous:** [Ribbon.Minimized Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/ribbon/minimized-property/llms-full.txt)
- **Next:** [RibbonButton Class](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/ribbonbutton/llms-full.txt)
