<div class="meta" robots="noindex">

</div>

Method

# TextColor

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

<div class="warning">

<div class="title">

Warning

</div>

This item was deprecated in version 2019r2. Please use `Color.TextColor<color.textcolor>` as a replacement.

</div>

## Description

The system text color.

## Usage

*result* = **TextColor**

| Part   | Type                           | Description                      |
|--------|--------------------------------|----------------------------------|
| result | `Color</api/data_types/color>` | The color used for drawing text. |

## Notes

This value is useful when you are using `Canvas</api/deprecated/canvas>` controls to create custom controls. When drawing objects, use this color as the ForeColor value when drawing text.

The `Color.DisabledTextColor<color.disabledtextcolor>` returns the system color for drawing disabled text.

This value can be changed by the user or when the system switches between light/dark modes, so you should use this method in the Paint event handler rather than storing the value.

## Compatibility

All project types on all supported operating systems.

## See also

`Color.DarkBevelColor<color.darkbevelcolor>`, `Color.DarkTingeColor<color.darktingecolor>`, `Color.DisabledTextColor<color.disabledtextcolor>`, `Color.FillColor<color.fillcolor>`, `Color.FrameColor<color.framecolor>`, `Color.HighlightColor<color.highlightcolor>`, `Color.LightBevelColor<color.lightbevelcolor>`, `Color.LightTingeColor<color.lighttingecolor>` functions; `Color</api/data_types/color>` data type.
