# RibbonTextBox.Text Property

> Overridden. Gets or sets the text that is inserted in the text box.

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

---

### Description

Overridden. Gets or sets the text that is inserted in the text box.

### Syntax

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

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

### Examples

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

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

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

---

## Nearby

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