# TextControl.ButtonBar Property

> Specifies the button bar control to be used with a TextControl. The property value is an empty string, if there is no button bar connected. Otherwise it must be the name of an existing WPF.ButtonBar object.

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 16.0
- **Namespace:** `TXTextControl.WPF`
- **Package:** `TXTextControl.TextControl.WPF.SDK` (assembly `TXTextControl.WPF.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.WPF.dll` from the setup
- **Path:** TX Text Control .NET for WPF > Reference > TXTextControl.WPF > TextControl.ButtonBar Property
- **443 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/buttonbar-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/buttonbar-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/buttonbar-property/llms-full.txt

---

### Description

Specifies the button bar control to be used with a TextControl. The property value is an empty string, if there is no button bar connected. Otherwise it must be the name of an existing [WPF.ButtonBar](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/buttonbar/llms-full.txt) object.

### Syntax

```csharp
public string ButtonBar { get; set; }
```

```vbnet
Public Property ButtonBar As String
```

### Examples

The following example uses `TextControl.ButtonBar` to configure button bar as part of the text control workflow. The configured value is checked before the workflow continues.

```csharp
textControl.ButtonBar = "Quarterly report";
if (!string.IsNullOrWhiteSpace(textControl.ButtonBar))
{
    Console.WriteLine($"Button Bar: {textControl.ButtonBar}");
}
```

```vbnet
textControl.ButtonBar = "Quarterly report"
If Not String.IsNullOrWhiteSpace(textControl.ButtonBar) Then
    Console.WriteLine($"Button Bar: {textControl.ButtonBar}")
End If
```

---

## Nearby

- **Previous:** [TextControl.BorderThickness Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/borderthickness-property/llms-full.txt)
- **Next:** [TextControl.CanCharacterFormat Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/cancharacterformat-property/llms-full.txt)
