# RibbonButton.DisplayMode Property

> Sets the RibbonButton's superordinate display settings and gets its corresponding text icon relation rendering to the current group's width.

- **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 > RibbonButton.DisplayMode Property
- **341 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/ribbonbutton/displaymode-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/ribbonbutton/displaymode-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/ribbonbutton/displaymode-property/llms-full.txt

---

### Description

Sets the RibbonButton's superordinate [display settings](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/icontextrelation/enumeration/llms-full.txt) and gets its corresponding text icon relation rendering to the current group's width.

### Syntax

```csharp
public IconTextRelation DisplayMode { get; set; }
```

```vbnet
Public Property DisplayMode As IconTextRelation
```

### Examples

The following example uses `RibbonButton.DisplayMode` to configure display mode as part of the ribbon button workflow. The change is then applied to the active document or user interface.

```csharp
ribbonButton.DisplayMode = TXTextControl.Windows.Forms.Ribbon.IconTextRelation.NoIconLabeled;
ribbonButton.Update();
```

```vbnet
ribbonButton.DisplayMode = TXTextControl.Windows.Forms.Ribbon.IconTextRelation.NoIconLabeled
ribbonButton.Update()
```

---

## Nearby

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