TX Text Control .NET Documentation

ButtonBarBase Class

The ButtonBarBase class is the base class of the ButtonBar and the BrowserButtonBar classes and implements the most of their features. It is inherited from the System.Windows.Forms.Control class. The following describes only the properties, methods and events defined through the ButtonBarBase class. For a list of properties, methods and events inherited from the System.Windows.Forms.Control class see the .NET Framework reference.

Syntax:
[C#] public class ButtonBarBase : Control
[Visual Basic] Public Class ButtonBarBase Inherits Control

Properties

PropertyDescription
BorderStyleGets or sets the border style of the button bar.

ButtonOffsetsGets or sets an array of additional offsets, in pixels, between the buttons.

ButtonPositionsGets or sets an array of buttons the button bar consists of.

ButtonSeparatorsGets or sets an array of boolean values specifying whether or not a separator is drawn between two buttons.

ButtonStyleGets or sets the painting style of the buttons.

DisplayColorsGets or sets the colors of the button bar.

Methods

MethodDescription
ResetButtonOffsetsResets the offset array to its default state.

ResetButtonPositionsResets the button array to its default state.

ResetButtonSeparatorsResets the separator array to its default state.

ResetDisplayColorsResets all display colors of a button bar to their system dependent default values.

Example: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 }
See also:Tool Bars, Graphical Overview.