# ForeColor Property

> Returns or sets the text color of a formatting style as an RGB Long from 0 to &HFFFFFF, &H40000000 for the system window text color or &H80000000 to inherit it.

- **Product:** TX Text Control ActiveX
- **Section:** Documentation
- **Kind:** Property
- **Path:** TX Text Control ActiveX > API Reference > Style > ForeColor Property
- **161 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/style/forecolor-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/style/forecolor-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/style/forecolor-property/llms-full.txt

---

Returns or sets the formatting style's text color. Text Control uses the Microsoft Windows operating environment red-green-blue (RGB) color scheme.

### Syntax

```vbscript
Style.ForeColor [= value]
```

| Setting | Description |
|---|---|
| 0 to &HFFFFFF | These values are interpreted as RGB values. |
| &H40000000 | The style uses the system color for the window text. |
| &H80000000 | The text color is inherited from the paragraph. This value is only possible for character-based styles. |

### Data Types

Long.

### Limitations

Run time only.

### See Also

- [Programming Category: Stylesheet Programming](https://docs.textcontrol.com/tx-text-control-activex/reference/categories/stylesheet-programming/llms-full.txt)

---

## Nearby

- **Previous:** [FontUnderline Property](https://docs.textcontrol.com/tx-text-control-activex/reference/style/fontunderline-property/llms-full.txt)
- **Next:** [FrameDistance Property](https://docs.textcontrol.com/tx-text-control-activex/reference/style/framedistance-property/llms-full.txt)
