# ButtonBar.ButtonPositions Property

> Gets or sets an array of buttons the button bar consists of. The maximum size of the array is 31 buttons.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Property
- **Namespace:** `TXTextControl`
- **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 > ButtonBar.ButtonPositions Property
- **1105 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/buttonbar/buttonpositions-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/buttonbar/buttonpositions-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/buttonbar/buttonpositions-property/llms-full.txt

---

### Description

Gets or sets an array of buttons the button bar consists of. The maximum size of the array is 31 buttons.

### Syntax

```csharp
public Button[] ButtonPositions { get; set; }
```

```vbnet
Public Property ButtonPositions As Button()
```

### Members

| Value | Description |
|---|---|
| AlignmentLeftButton | Specifies a button for setting a left aligned paragraph. |
| AlignmentRightButton | Specifies a button for setting a right aligned paragraph. |
| AlignmentCenteredButton | Specifies a button for setting a centered paragraph. |
| AlignmentJustifiedButton | Specifies a button for setting a justified paragraph. |
| ControlCharsButton | Specifies a button for showing or hiding control characters. |
| DecreaseIndentButton | Specifies a button for decreasing a paragraph's indent. |
| FontNameComboBox | Specifies a combobox containing all fonts of the current formatting device. |
| FontSizeComboBox | Specifies a combobox containing all sizes of the current font. |
| FontBoldButton | Specifies a button for setting the font bold attribute. |
| FontItalicButton | Specifies a button for setting the font italic attribute. |
| FontUnderlineButton | Specifies a button for setting the font underline attribute. |
| GrowFontSizeButton | Specifies a button for growing the font size. |
| IncreaseIndentButton | Specifies a button for increasing a paragraph's indent. |
| LeftToRightButton | Specifies a button to set a paragraph's text direction from left to right. |
| ListBulletedButton | Specifies a button for setting a bulleted list. |
| ListNumberedButton | Specifies a button for setting a numbered list. |
| ListStructuredButton | Specifies a button for setting a structured numbered list. |
| RightToLeftButton | Specifies a button to set a paragraph's text direction from right to left. |
| ShrinkFontSizeButton | Specifies a button for shrinking the font size. |
| StrikeOutButton | Specifies a button for setting the font strike out attribute. |
| StyleComboBox | Specifies a combobox containing the document's formatting styles. |
| SubscriptButton | Specifies a button for setting the baseline of selected text to subscript. |
| SuperscriptButton | Specifies a button for setting the baseline of selected text to superscript. |
| TabLeftButton | Specifies a button for selecting a left aligned tab. |
| TabRightButton | Specifies a button for selecting a right aligned tab. |
| TabCenteredButton | Specifies a button for selecting a centered tab. |
| TabDecimalButton | Specifies a button for selecting a decimal tab. |
| XMLAddElementComboBox | Specifies a combobox for inserting XML elements. |
| XMLRemoveElementComboBox | Specifies a combobox for deleting XML elements. |
| ZoomComboBox | Specifies a combobox for setting the current zoom factor. |

### Examples

The following example uses `ButtonBar.ButtonPositions` to configure button positions as part of the button bar workflow. The change is then applied to the active document or user interface.

```csharp
buttonBar.ButtonPositions = new TXTextControl.Button[] { TXTextControl.Button.FontNameComboBox };
buttonBar.Update();
```

```vbnet
buttonBar.ButtonPositions = New TXTextControl.Button() { TXTextControl.Button.FontNameComboBox }
buttonBar.Update()
```

---

## Nearby

- **Previous:** [ButtonBar.ButtonOffsets Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/buttonbar/buttonoffsets-property/llms-full.txt)
- **Next:** [ButtonBar.ButtonSeparators Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/buttonbar/buttonseparators-property/llms-full.txt)
