Click or drag to resize

DataColumn.ChangeTextColor Method (Color, Long)

X#
Set a new pen in a particular area of this data column.

Namespace:  XSharp.VO.SDK
Assembly:  XSharp.VOGUIClasses (in XSharp.VOGUIClasses.dll) Version: 2.21
Syntax
 VIRTUAL METHOD ChangeTextColor(
	oColor AS Color,
	kWhere AS LONG
) AS Color
Request Example View Source

Parameters

oColor
Type: Color
The new color to be used.
kWhere
Type: Long
Indicates what part of the data column should be changed, specified as one of the following constants.

Return Value

Type: Color
The pen previously assigned to the changed area.
Remarks
Possible values for kColor
ConstantColor
COLORBLACKBlack
COLORBLUEBlue
COLORCYANCyan
COLORGREENGreen
COLORMAGENTAMagenta
COLORREDRed
COLORWHITEWhite
COLORYELLOWYellow
Possible values for kWhere
ConstantDescription
GBLCOLCAPTIONThe column caption area.
GBLHITEXTHighlighted (selected) text in the data area.
GBLTEXTText in the data display area. This is the default.
As a rule, initial settings are picked up from the standard settings of the environment—under Windows, colors are set in the Control Panel. The default is picked up from the standard settings of the environment; for example, under Windows the text color of buttons is set with the Control Panel. Although the button and caption area can be specified, the method refers only to this column.
Examples
To set the text color in the main area blue and caption text red:
X#
1oDataColumn:ChangeTextColor(Color{COLORBLUE},GBLTEXT)
2oDataColumn:ChangeTextColor(Color{COLORRED},GBLCOLCAPTION)
See Also