
The WPF.ButtonBar class represents a tool bar which can be used to show or to set font and paragraph attributes of a WPF.TextControl. It is inherited from the WPF.TextControlFrameworkElement class which is inherited from the System.Windows.FrameworkElement class. The following describes only the properties, methods and events defined through this class. For a list of inherited properties, methods and events see the .NET Framework reference.
Introduced: 16.0.
[C#]
public class ButtonBar : TextControlFrameworkElement
[Visual Basic]
Public Class ButtonBar
Inherits TextControlFrameworkElement
| Property | Description | |
| BorderStyle | Gets or sets the border style of the button bar. | |
| ButtonOffsets | Gets or sets an array of additional offsets, in pixels, between the buttons. | |
| ButtonPositions | Gets or sets an array of buttons the button bar consists of. | |
| ButtonSeparators | Gets or sets an array of boolean values specifying whether or not a separator is drawn between two buttons. | |
| ButtonStyle | Gets or sets the painting style of the buttons. | |
| DisplayColors | Gets or sets the colors of the button bar. |
The following example shows how to set up a ButtonBar with just 2 specific buttons.
[C#]
buttonBar1.ButtonPositions = new TXTextControl.Button[] {
TXTextControl.Button.FontBoldButton,
TXTextControl.Button.FontItalicButton };
[Visual Basic]
ButtonBar1.ButtonPositions = New TXTextControl.Button() { _
TXTextControl.Button.FontBoldButton, _
TXTextControl.Button.FontItalicButton }