The RulerBar.Colors class gets, sets or resets the display colors of a Windows Forms RulerBar 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 ruler bar's BorderStyle property has been set to ColorScheme.

Syntax

public class RulerBar.Colors
Public Class RulerBar.Colors

Introduced: 15.1.

Examples

The following example shows a RulerBar.Colors class with its multiple properties.

TXTextControl.RulerBar.Colors  rulerBarColors = new TXTextControl.RulerBar.Colors();

rulerBarColors.BackColor = TXTextControl.RulerBar.Colors.White;
rulerBarColors.ForeColor = TXTextControl.RulerBar.Colors.Yellow;
Dim rulerBarColors As TXTextControl.RulerBar.Colors = New TXTextControl.RulerBar.Colors()

rulerBarColors.BackColor  = TXTextControl.RulerBar.Colors.White
rulerBarColors.ForeColor  = TXTextControl.RulerBar.Colors.Yellow

End Sub

Constructors

Constructor Description
Colors Initializes a new instance of the RulerBar.Colors class.

Methods

Method Description
ResetBackColor Resets the ruler bar's BackColor to its system dependent default value.
ResetForeColor Resets the ruler bar's ForeColor to its system dependent default value.
ResetGradientBackColor Resets the ruler bar's GradientBackColor to its system dependent default value.
ResetRulerColor Resets the ruler bar's RulerColor to its system dependent default value.
ResetSeparatorColorDark Resets the ruler bar's SeparatorColorDark to its system dependent default value.
ResetSeparatorColorLight Resets the ruler bar's SeparatorColorLight to its system dependent default value.

Properties

Property Description
BackColor Gets or sets the background color at the left or top edge of the ruler bar.
ForeColor Gets or sets the color used for the numbers of the ruler.
GradientBackColor Gets or sets the background color at the right or bottom edge of the ruler bar.
RulerColor Gets or sets the color of the ruler.
SeparatorColorDark Gets or sets the color of dark separators.
SeparatorColorLight Gets or sets the color of light separators.