TX Text Control .NET for Windows Forms

Colors Class

Class|Introduced in 15.1
Namespace
TXTextControl
Package
TXTextControl.TextControl.WinForms.SDK from the private NuGet feed or Text Control Offline Packages
Assembly
TXTextControl.Windows.Forms.dll
Install
dotnet add package TXTextControl.TextControl.WinForms.SDK .NET 8 and later. For .NET Framework, reference TXTextControl.Windows.Forms.dll from the setup.
Inherits
  1. ColorBase
  2. ButtonBar.Colors

Description

The ButtonBar.Colors class gets, sets or resets the display colors of a Windows Forms ButtonBar control. By default the display colors depend on sytem colors. With this class all colors can be individually designed. The colors are only used when the button bar's BorderStyle and ButtonStyle property have been set to ColorScheme.

Syntax

public sealed class ButtonBar.Colors : ColorBase

Examples

The following example creates a Colors instance and configures its fore color setting for a document workflow.

ButtonBar.Colors colors = new();
colors.ForeColor = System.Drawing.Color.LightSteelBlue;

Members

Constructors

ConstructorDescription
ColorsInitializes a new instance of the ButtonBar.Colors class. After creating the object with this constuctor, individual colors can be set. If the Colors object is assigned to the ButtonBar.DisplayColors property, non-set colors are reset to their system dependent default values.

Properties

PropertyDescription
BackColorGets or sets the background color at the left edge of the button bar.
ButtonBackColorBottomGets or sets the background color at the bottom of a button.
ButtonBackColorMiddleGets or sets the background color in the middle of a button.
ButtonBackColorTopGets or sets the background color at the top of a button.
ButtonFrameColorGets or sets the frame color of a selected or pressed button.
ButtonHotTrackBottomGets or sets the background color at the bottom of a button, if the mouse cursor is over the button.
ButtonHotTrackTopGets or sets the background color at the top of a button, if the mouse cursor is over the button.
ButtonPressedBottomGets or sets the background color at the bottom of a button used when the button is pressed down.
ButtonPressedTopGets or sets the background color at the top of a button used when the button is pressed down.
ButtonSelectedBottomGets or sets the background color at the bottom of a button used when the button is selected.
ButtonSelectedTopGets or sets the background color at the top of a button used when the button is selected.
ComboBoxBackColorGets or sets the background color of the combo boxes.
ForeColorGets or sets the color used for text and the button images.
GradientBackColorGets or sets the background color at the right edge of the button bar.
SeparatorColorDarkGets or sets the color of the dark part of a separator.
SeparatorColorLightGets or sets the color of the light part of a separator.

Methods

MethodDescription
ResetBackColorResets the button bar's BackColor to its system dependent default value.
ResetButtonBackColorBottomResets the button bar's ButtonBackColorBottom to its system dependent default value.
ResetButtonBackColorMiddleResets the button bar's ButtonBackColorMiddle to its system dependent default value.
ResetButtonBackColorTopResets the button bar's ButtonBackColorTop to its system dependent default value.
ResetButtonFrameColorResets the button bar's ButtonFrameColor to its system dependent default value.
ResetButtonHotTrackBottomResets the button bar's ButtonHotTrackBottom to its system dependent default value.
ResetButtonHotTrackTopResets the button bar's ButtonHotTrackTop to its system dependent default value.
ResetButtonPressedBottomResets the button bar's ButtonPressedBottom to its system dependent default value.
ResetButtonPressedTopResets the button bar's ButtonPressedTop to its system dependent default value.
ResetButtonSelectedBottomResets the button bar's ButtonSelectedBottom to its system dependent default value.
ResetButtonSelectedTopResets the button bar's ButtonSelectedTop to its system dependent default value.
ResetComboBoxBackColorResets the button bar's ComboBoxBackColor to its system dependent default value.
ResetForeColorResets the button bar's ForeColor to its system dependent default value.
ResetGradientBackColorResets the button bar's GradientBackColor to its system dependent default value.
ResetSeparatorColorDarkResets the button bar's SeparatorColorDark to its system dependent default value.
ResetSeparatorColorLightResets the button bar's SeparatorColorLight to its system dependent default value.