# ButtonBar.ButtonOffsets Property

> Gets or sets an array of additional offsets, in pixels, between the buttons. The maximum size of the array is 31.

- **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.ButtonOffsets Property
- **306 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/buttonbar/buttonoffsets-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/buttonbar/buttonoffsets-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/buttonbar/buttonoffsets-property/llms-full.txt

---

### Description

Gets or sets an array of additional offsets, in pixels, between the buttons. The maximum size of the array is 31.

### Syntax

```csharp
public int[] ButtonOffsets { get; set; }
```

```vbnet
Public Property ButtonOffsets As Integer()
```

### Examples

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

```csharp
buttonBar.ButtonOffsets = new int[] { 10 };
buttonBar.Update();
```

```vbnet
buttonBar.ButtonOffsets = New Integer() { 10 }
buttonBar.Update()
```

---

## Nearby

- **Previous:** [ButtonBar.BorderStyle Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/buttonbar/borderstyle-property/llms-full.txt)
- **Next:** [ButtonBar.ButtonPositions Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/buttonbar/buttonpositions-property/llms-full.txt)
