Graphics.ForeColor
From Xojo Documentation
This item was deprecated in version 2019r2. Please use Graphics.DrawingColor as a replacement. |
Property (As Color )
aGraphics.ForeColor = newColorValue
or
ColorValue = aGraphics.ForeColor
Supported for all project types and targets.
or
ColorValue = aGraphics.ForeColor
Supported for all project types and targets.
The currently selected color for the Graphics object. This color is used by the various drawing methods.
Example
This example draws a diagonal line in the current ForeColor.
g.ForeColor = &cff0000
g.FillRect(10, 10, 100, 100)
g.FillRect(10, 10, 100, 100)