DataColumn.ChangeTextColor Method (Color, Long) | |
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
public virtual Color ChangeTextColor(
Color oColor,
int kWhere
)
Request Example
View SourceParameters
- 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
Constant | Color |
---|
COLORBLACK | Black |
COLORBLUE | Blue |
COLORCYAN | Cyan |
COLORGREEN | Green |
COLORMAGENTA | Magenta |
COLORRED | Red |
COLORWHITE | White |
COLORYELLOW | Yellow |
Possible values for kWhere
Constant | Description |
---|
GBLCOLCAPTION | The column caption area. |
GBLHITEXT | Highlighted (selected) text in the data area. |
GBLTEXT | Text 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:
1oDataColumn:ChangeTextColor(Color{COLORBLUE},GBLTEXT)
2oDataColumn:ChangeTextColor(Color{COLORRED},GBLCOLCAPTION)
See Also