The ButtonBar class represents a Windows Forms tool bar which can be used to show or to set font and paragraph attributes of a Windows Forms TextControl. It is inherited from the System.Windows.Forms.Control class. The following describes only the properties, methods and events defined through the ButtonBar class. For a list of properties, methods and events inherited from the System.Windows.Forms.Control class see the .NET Framework reference.

Syntax

public class ButtonBar : Control
Public Class ButtonBar
  Inherits Control

Examples

The following examples shows how to set up the ButtonBar with just 2 specific buttons.

TXTextControl.ButtonBar buttonBar1 = new TXTextControl.ButtonBar();
buttonBar1.ButtonPositions = new TXTextControl.Button[] { 
TXTextControl.Button.FontBoldButton, TXTextControl.Button.FontItalicButton };
Dim ButtonBar1 As TXTextControl.ButtonBar = New TXTextControl.ButtonBar()
ButtonBar1.ButtonPositions = New TXTextControl.Button() { _
TXTextControl.Button.FontBoldButton, TXTextControl.Button.FontItalicButton }

Methods

Method Description
ResetButtonOffsets Resets the offset array to its default state.
ResetButtonPositions Resets the button array to its default state.
ResetButtonSeparators Resets the separator array to its default state.
ResetDisplayColors Resets all display colors of a button bar to their system dependent default values.

Properties

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.
ReadOnly Gets or sets a value determining the button bar's read only mode.