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

Introduced: 15.1.

ResetDisplayColors()

public void ResetDisplayColors();
Public Sub ResetDisplayColors()

Examples

This example describes how to use the 'ResetDisplayColors' method. Here, the 'DisplayColors' property is reset to its system dependent default value.

TXTextControl.ButtonBar buttonBar1 = new TXTextControl.ButtonBar();
buttonBar1.ButtonStyle = TXTextControl.ButtonStyle.ColorScheme; //
buttonBar1.ButtonPositions = new TXTextControl.Button[] {
                             TXTextControl.Button.FontBoldButton,
                             TXTextControl.Button.FontNameComboBox };
buttonBar1.BorderStyle = TXTextControl.ButtonBarBorderStyle.ColorScheme; 

TXTextControl.ButtonBar.Colors colors = new TXTextControl.ButtonBar.Colors();
colors.BackColor = System.Drawing.Color.White;
colors.ComboBoxBackColor = System.Drawing.Color.Azure;

buttonBar1.DisplayColors = colors; // In this line, the 'DisplayColors' property is set.

buttonBar1.ResetDisplayColors(); // here the 'DisplayColors' are reset.
Dim buttonBar1 As TXTextControl.ButtonBar = New TXTextControl.ButtonBar()
buttonBar1.ButtonStyle = TXTextControl.ButtonStyle.ColorScheme
buttonBar1.ButtonPositions = New TXTextControl.Button() {TXTextControl.Button.FontBoldButton, TXTextControl.Button.FontNameComboBox}
buttonBar1.BorderStyle = TXTextControl.ButtonBarBorderStyle.ColorScheme

Dim colors As TXTextControl.ButtonBar.Colors = New TXTextControl.ButtonBar.Colors()
colors.BackColor = System.Drawing.Color.White
colors.ComboBoxBackColor = System.Drawing.Color.Azure

buttonBar1.DisplayColors = colors ' In this line, the 'DisplayColors' property is set.

buttonBar1.ResetDisplayColors() ' here the 'DisplayColors' are reset.