# ButtonBar.Colors Class

> 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.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Class
- **Introduced:** 15.1
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.WinForms.SDK` (assembly `TXTextControl.Windows.Forms.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.Windows.Forms.dll` from the setup
- **Inherits:** `TXTextControl.ColorBase`
- **Path:** TX Text Control .NET for Windows Forms > Reference > TXTextControl > ButtonBar.Colors Class
- **2316 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/buttonbar-colors/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/buttonbar-colors/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/buttonbar-colors/llms-full.txt

---

### Description

The ButtonBar.Colors class gets, sets or resets the display colors of a Windows Forms [ButtonBar](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/buttonbar/llms-full.txt) 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](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/buttonbar/borderstyle-property/llms-full.txt) and [ButtonStyle](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/buttonbar/buttonstyle-property/llms-full.txt) property have been set to `ColorScheme`.

### Syntax

```csharp
public sealed class ButtonBar.Colors : ColorBase
```

```vbnet
Public NotInheritable Class ButtonBar.Colors
    Inherits ColorBase
```

### Examples

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

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

```vbnet
Dim colors As New ButtonBar.Colors()
colors.ForeColor = System.Drawing.Color.LightSteelBlue
```

---

## In This Section

- [ButtonBar.Colors.BackColor Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/buttonbar-colors/backcolor-property/llms-full.txt): Gets or sets the background color at the left edge of the button bar.
- [ButtonBar.Colors.ButtonBackColorBottom Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/buttonbar-colors/buttonbackcolorbottom-property/llms-full.txt): Gets or sets the background color at the bottom of a button.
- [ButtonBar.Colors.ButtonBackColorMiddle Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/buttonbar-colors/buttonbackcolormiddle-property/llms-full.txt): Gets or sets the background color in the middle of a button.
- [ButtonBar.Colors.ButtonBackColorTop Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/buttonbar-colors/buttonbackcolortop-property/llms-full.txt): Gets or sets the background color at the top of a button.
- [ButtonBar.Colors.ButtonFrameColor Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/buttonbar-colors/buttonframecolor-property/llms-full.txt): Gets or sets the frame color of a selected or pressed button.
- [ButtonBar.Colors.ButtonHotTrackBottom Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/buttonbar-colors/buttonhottrackbottom-property/llms-full.txt): Gets or sets the background color at the bottom of a button, if the mouse cursor is over the button.
- [ButtonBar.Colors.ButtonHotTrackTop Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/buttonbar-colors/buttonhottracktop-property/llms-full.txt): Gets or sets the background color at the top of a button, if the mouse cursor is over the button.
- [ButtonBar.Colors.ButtonPressedBottom Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/buttonbar-colors/buttonpressedbottom-property/llms-full.txt): Gets or sets the background color at the bottom of a button used when the button is pressed down.
- [ButtonBar.Colors.ButtonPressedTop Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/buttonbar-colors/buttonpressedtop-property/llms-full.txt): Gets or sets the background color at the top of a button used when the button is pressed down.
- [ButtonBar.Colors.ButtonSelectedBottom Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/buttonbar-colors/buttonselectedbottom-property/llms-full.txt): Gets or sets the background color at the bottom of a button used when the button is selected.
- [ButtonBar.Colors.ButtonSelectedTop Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/buttonbar-colors/buttonselectedtop-property/llms-full.txt): Gets or sets the background color at the top of a button used when the button is selected.
- [ButtonBar.Colors.ComboBoxBackColor Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/buttonbar-colors/comboboxbackcolor-property/llms-full.txt): Gets or sets the background color of the combo boxes.
- [ButtonBar.Colors Constructor](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/buttonbar-colors/constructor/llms-full.txt): Initializes 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.
- [ButtonBar.Colors.ForeColor Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/buttonbar-colors/forecolor-property/llms-full.txt): Gets or sets the color used for text and the button images.
- [ButtonBar.Colors.GradientBackColor Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/buttonbar-colors/gradientbackcolor-property/llms-full.txt): Gets or sets the background color at the right edge of the button bar.
- [ButtonBar.Colors.ResetBackColor Method](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/buttonbar-colors/resetbackcolor-method/llms-full.txt): Resets the button bar's BackColor to its system dependent default value.
- [ButtonBar.Colors.ResetButtonBackColorBottom Method](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/buttonbar-colors/resetbuttonbackcolorbottom-method/llms-full.txt): Resets the button bar's ButtonBackColorBottom to its system dependent default value.
- [ButtonBar.Colors.ResetButtonBackColorMiddle Method](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/buttonbar-colors/resetbuttonbackcolormiddle-method/llms-full.txt): Resets the button bar's ButtonBackColorMiddle to its system dependent default value.
- [ButtonBar.Colors.ResetButtonBackColorTop Method](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/buttonbar-colors/resetbuttonbackcolortop-method/llms-full.txt): Resets the button bar's ButtonBackColorTop to its system dependent default value.
- [ButtonBar.Colors.ResetButtonFrameColor Method](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/buttonbar-colors/resetbuttonframecolor-method/llms-full.txt): Resets the button bar's ButtonFrameColor to its system dependent default value.
- [ButtonBar.Colors.ResetButtonHotTrackBottom Method](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/buttonbar-colors/resetbuttonhottrackbottom-method/llms-full.txt): Resets the button bar's ButtonHotTrackBottom to its system dependent default value.
- [ButtonBar.Colors.ResetButtonHotTrackTop Method](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/buttonbar-colors/resetbuttonhottracktop-method/llms-full.txt): Resets the button bar's ButtonHotTrackTop to its system dependent default value.
- [ButtonBar.Colors.ResetButtonPressedBottom Method](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/buttonbar-colors/resetbuttonpressedbottom-method/llms-full.txt): Resets the button bar's ButtonPressedBottom to its system dependent default value.
- [ButtonBar.Colors.ResetButtonPressedTop Method](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/buttonbar-colors/resetbuttonpressedtop-method/llms-full.txt): Resets the button bar's ButtonPressedTop to its system dependent default value.
- [ButtonBar.Colors.ResetButtonSelectedBottom Method](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/buttonbar-colors/resetbuttonselectedbottom-method/llms-full.txt): Resets the button bar's ButtonSelectedBottom to its system dependent default value.
- [ButtonBar.Colors.ResetButtonSelectedTop Method](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/buttonbar-colors/resetbuttonselectedtop-method/llms-full.txt): Resets the button bar's ButtonSelectedTop to its system dependent default value.
- [ButtonBar.Colors.ResetComboBoxBackColor Method](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/buttonbar-colors/resetcomboboxbackcolor-method/llms-full.txt): Resets the button bar's ComboBoxBackColor to its system dependent default value.
- [ButtonBar.Colors.ResetForeColor Method](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/buttonbar-colors/resetforecolor-method/llms-full.txt): Resets the button bar's ForeColor to its system dependent default value.
- [ButtonBar.Colors.ResetGradientBackColor Method](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/buttonbar-colors/resetgradientbackcolor-method/llms-full.txt): Resets the button bar's GradientBackColor to its system dependent default value.
- [ButtonBar.Colors.ResetSeparatorColorDark Method](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/buttonbar-colors/resetseparatorcolordark-method/llms-full.txt): Resets the button bar's SeparatorColorDark to its system dependent default value.
- [ButtonBar.Colors.ResetSeparatorColorLight Method](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/buttonbar-colors/resetseparatorcolorlight-method/llms-full.txt): Resets the button bar's SeparatorColorLight to its system dependent default value.
- [ButtonBar.Colors.SeparatorColorDark Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/buttonbar-colors/separatorcolordark-property/llms-full.txt): Gets or sets the color of the dark part of a separator.
- [ButtonBar.Colors.SeparatorColorLight Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/buttonbar-colors/separatorcolorlight-property/llms-full.txt): Gets or sets the color of the light part of a separator.

---

## Nearby

- **Previous:** [ButtonBar.ButtonStyle Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/buttonbar/buttonstyle-property/llms-full.txt)
- **Next:** [ButtonBar.Colors.BackColor Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/buttonbar-colors/backcolor-property/llms-full.txt)
