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

</div>

Property

# Graphics.ForeColor

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

<div class="warning">

<div class="title">

Warning

</div>

This item was deprecated in version 2019r2. Please use `Graphics.DrawingColor<graphics.drawingcolor>` as a replacement.

</div>

## Description

The currently selected color for the **Graphics** object. This color is used by the various drawing methods.

## Sample code

This example draws a diagonal line in the current <span class="title-ref">ForeColor</span>.

``` xojo
g.ForeColor = &cff0000
g.FillRect(10, 10, 100, 100)
```

## Compatibility

All project types on all supported operating systems.
