Controls and objects that display text
The TextColor property specifies the color to be used for text in the control.
For the MonthCalendar control, TextColor is the color used to display text within a month.
This property does not work in MonthCalendar controls on the Microsoft Vista operating system.
To set the text color for most controls:
Select the desired color from the TextColor drop-down list on the Font tab page for the control.
To set the text color for graph objects and MonthCalendar controls:
Select the desired color from the TextColor drop-down list on the General page of the Properties view.
To set the text color for text objects within graphs:
Select the Text tab page from the graph’s Properties view.
Select the desired text object from TextObject drop-down list.
Select a color from the TextColor drop-down list.
The TextColor property is a long indicating the color to be used for the background for an object. If you do not know the long value for the color, choose Design>Custom Colors to determine the red, green, and blue values and then call the RGB function to specify the color in a script.
In graphs, the TextColor property is a property of the graph object as well as of grDistAttr objects within the graph. For example, the following line sets text color for all the text objects in the Series Axis:
gr_1.Series.DispAttr.TextColor = RGB(0,0,255)