TX Text Control ActiveX

DisplayColor Property

Property

This property gets or sets the display colors of a ruler bar. By default the display colors depend on system 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

TXRulerBar.DisplayColor(index) [= color]

Parameters

ParameterDescription
indexDetermines 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:

ConstantDescription
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

NameData type
indexInteger
Property valueLong

Limitations

Run time only.

See Also