Home > Language Reference > Classes > Display

TextColor Property

Text color.

Syntax

Public Property Get TextColor() As Long
Public Property Let TextColor(ByVal lColor As Long)

ParameterDescription
lColorNew text color.

Remarks

The TextColor property indicates the color used by the TextOut method to draw text on the Display object. By default, the color is black.

A color is specified with a value of type Long whose first byte contains the intensity of blue, the second the intensity of green and the third the intensity of red. This value could be defined using the Color function, or using the Built-in Color Constants. For more information, refer to the Color Handling chapter.

You can modify the background colors and foreground colors using the BackColor and ForeColor properties respectively.

System requirements

SystemMinimal versionRemarks
Palm OSPalm OS 3.0N/A