Colors Class
- Namespace
TXTextControl
- Package
TXTextControl.from the private NuGet feed or Text Control Offline PackagesTextControl. WinForms. SDK
- Assembly
TXTextControl.Windows. Forms. dll
- Install
dotnet add package TXTextControl..NET 8 and later. For .NET Framework, referenceTextControl. WinForms. SDK TXTextControl.from the setup.Windows. Forms. dll
- Inherits
- ColorBase
- Status
Bar. Colors
Description
The StatusBar.Colors class gets, sets or resets the display colors of a Windows Forms StatusBar 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 status bar's BorderStyle property has been set to ColorScheme.
Syntax
public sealed class StatusBar.Colors : ColorBasePublic NotInheritable Class StatusBar.Colors
Inherits ColorBaseExamples
The following example creates a Colors instance and configures its fore color setting for a document workflow.
StatusBar.Colors colors = new();
colors.ForeColor = System.Drawing.Color.LightSteelBlue;Dim colors As New StatusBar.Colors()
colors.ForeColor = System.Drawing.Color.LightSteelBlueMembers
Constructors
| Constructor | Description |
|---|---|
| Colors | Initializes a new instance of the StatusBar.Colors class. After creating the object with this constuctor, individual colors can be set. If the Colors object is assigned to the StatusBar.DisplayColors property, non-set colors are reset to their system dependent default values. |
Properties
| Property | Description |
|---|---|
| BackColor | Gets or sets the background color at the left edge of the status bar. This color is only used with the ColorScheme border style. |
| BackColorBottom | Gets or sets the background color at the bottom of the status bar. This color is only used with the VerticalColorScheme border style. |
| BackColorMiddle | Gets or sets the background color in the middle of the status bar. This color is only used with the VerticalColorScheme border style. |
| BackColorTop | Gets or sets the background color at the top of the status bar. This color is only used with the VerticalColorScheme border style. |
| ForeColor | Gets or sets the color used for text and numbers. |
| FrameColor | Gets or sets the color of the status bar's frames. This color is only used with the ColorScheme border style. |
| GradientBackColor | Gets or sets the background color at the right edge of the status bar. This color is only used with the ColorScheme border style. |
| SeparatorColorDark | Gets or sets the color of the dark part of a separator. This color is only used with the VerticalColorScheme border style. |
| SeparatorColorLight | Gets or sets the color of the light part of a separator. This color is only used with the VerticalColorScheme border style. |
Methods
| Method | Description |
|---|---|
| ResetBackColor | Resets the status bar's BackColor to its system dependent default value. |
| ResetBackColorBottom | Resets the status bar's BackColorBottom to its system dependent default value. |
| ResetBackColorMiddle | Resets the status bar's BackColorMiddle to its system dependent default value. |
| ResetBackColorTop | Resets the status bar's BackColorTop to its system dependent default value. |
| ResetForeColor | Resets the status bar's ForeColor to its system dependent default value. |
| ResetFrameColor | Resets the status bar's FrameColor to its system dependent default value. |
| ResetGradientBackColor | Resets the status bar's GradientBackColor to its system dependent default value. |
| ResetSeparatorColorDark | Resets the status bar's SeparatorColorDark to its system dependent default value. |
| ResetSeparatorColorLight | Resets the status bar's SeparatorColorLight to its system dependent default value. |