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

Syntax

public int[] ButtonOffsets { get; set; }

Examples

This example shows how to use the 'ButtonOffsets' property. Two Buttons are created and an additional offset of 20 pixels between the buttons is created.

TXTextControl.ButtonBar buttonBar1 = new TXTextControl.ButtonBar();
buttonBar1.ReadOnly = false;
buttonBar1.ButtonPositions = new TXTextControl.Button[]{
                                 TXTextControl.Button.FontBoldButton,
                                 TXTextControl.Button.FontItalicButton};
buttonBar1.ButtonSeparators = new bool[] {true};
buttonBar1.ButtonOffsets = new int[]{20};