TXTextControl.TXRulerBar.DisplayColor Property

This property gets or sets the display colors of a ruler bar. By default the display colors depend on sytem colors. With this property all colors can be individually designed. The colors are only used when the ruler bar's Appearance property has been set to txColorScheme.

Introduced: 15.1.

Syntax

TXButtonBar.DisplayColor(index) [= color]
Parameter Description
index

Determines the index of the display element the color of which is changed. It must be a value of the RulerBarColor enumeration. Possible values are listed in Constants.

Constants

Valid values for the index parameter are:

Constant Description
rlForeColor (0)

Gets or sets the color used for the numbers of the ruler.

rlBackColor (1)

Gets or sets the background color at the left or top edge of the ruler bar.

rlGradientBackColor (2)

Gets or sets the background color at the right or bottom edge of the ruler bar.

rlSeparatorColorLight (3)

Gets or sets the color of light separators.

rlSeparatorColorDark (4)

Gets or sets the color of dark separators.

rlRulerColor (5)

Gets or sets the color of the ruler.

Data Types

index: Integer
Property value: Long

Limitations

Run time only.

See Also