# DisplayColor Property

> Gets or sets the display colors of a TXRulerBar by RulerBarColor index, from rlForeColor to rlRulerColor, used when Appearance is set to txColorScheme.

- **Product:** TX Text Control ActiveX
- **Section:** Documentation
- **Kind:** Property
- **Path:** TX Text Control ActiveX > API Reference > TXRulerBar > DisplayColor Property
- **358 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txrulerbar/displaycolor-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txrulerbar/displaycolor-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txrulerbar/displaycolor-property/llms-full.txt

---

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](https://docs.textcontrol.com/tx-text-control-activex/reference/txrulerbar/appearance-property/llms-full.txt) property has been set to **txColorScheme**.

Introduced: 15.1.

### Syntax

```vbscript
TXRulerBar.DisplayColor(index) [= color]
```

### Parameters

| 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

| Name | Data type |
|---|---|
| index | Integer |
| Property value | Long |

### Limitations

Run time only.

### See Also

- [Programming Category: Tool Bars](https://docs.textcontrol.com/tx-text-control-activex/reference/categories/toolbars/llms-full.txt)

---

## Nearby

- **Previous:** [Direction Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txrulerbar/direction-property/llms-full.txt)
- **Next:** [Enabled Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txrulerbar/enabled-property/llms-full.txt)
