# RibbonTextBox Constructor

> Initializes a new instance of the RibbonTextBox class.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Constructor
- **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 Constructor
- **352 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/ribbontextbox/constructor/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/ribbontextbox/constructor/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/ribbontextbox/constructor/llms-full.txt

---

### Description

Initializes a new instance of the RibbonTextBox class.

### Syntax

```csharp
public RibbonTextBox();
```

```vbnet
Public Sub New()
```

### Examples

The following example creates a Ribbon Text Box instance and configures its display mode setting for a document workflow.

```csharp
using TXTextControl.Windows.Forms.Ribbon.RibbonTextBox ribbonTextBox = new();
ribbonTextBox.DisplayMode = TXTextControl.Windows.Forms.Ribbon.IconTextRelation.NoIconLabeled;
```

```vbnet
Dim ribbonTextBox As New TXTextControl.Windows.Forms.Ribbon.RibbonTextBox()
ribbonTextBox.DisplayMode = TXTextControl.Windows.Forms.Ribbon.IconTextRelation.NoIconLabeled
```

---

## Nearby

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