GC.setForeground

Sets the foreground color. The foreground color is used for drawing operations including when text is drawn.

@param color the new foreground color for the receiver

@exception IllegalArgumentException <ul> <li>ERROR_NULL_ARGUMENT - if the color is null</li> <li>ERROR_INVALID_ARGUMENT - if the color has been disposed</li> </ul> @exception SWTException <ul> <li>ERROR_GRAPHIC_DISPOSED - if the receiver has been disposed</li> </ul>

class GC
void
setForeground

Meta