# RibbonLabel.Text Property

> Overridden. Gets or sets the RibbonLabel's text. If no text is set, only the RibbonLabel's icon is displayed.

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

---

### Description

Overridden. Gets or sets the RibbonLabel's text. If no text is set, only the RibbonLabel's [icon](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/ribbonlabel/smallicon-property/llms-full.txt) is displayed.

### Syntax

```csharp
public override string Text { get; set; }
```

```vbnet
Public Overrides Property Text() As String
```

### Examples

The following example uses `RibbonLabel.Text` to replace the ribbon label's displayed content. The change is then applied to the active document or user interface.

```csharp
ribbonLabel.Text = "Quarterly results";
ribbonLabel.Update();
```

```vbnet
ribbonLabel.Text = "Quarterly results"
ribbonLabel.Update()
```

---

## Nearby

- **Previous:** [RibbonLabel.SmallIcon Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/ribbonlabel/smallicon-property/llms-full.txt)
- **Next:** [RibbonLabel.ToolTip Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/ribbonlabel/tooltip-property/llms-full.txt)
