TreeSetNodeForeColorAtTreeLevel method (WinStudio scripts)

Applies To

IWSFormComponent interface, tree objects

Definition

Sets the text (foreground) color for a specific tree level.

Syntax

object.TreeSetNodeForeColorAtTreeLevel( integer, string )

Part Description
object Required. A reference to a valid tree component object.
integer Required. The tree level.
string Required. The RGB color specification.

Remarks

Colors are to be defined in RGB string format (Red,Green,Blue). Valid numeric values of 0-255 are accepted. If an invalid RGB string value is given, that color specification is ignored. Also, an empty string is interpreted as a 0,0,0 RGB value.

Example

'Set foreground color to red. 
ThisForm.Components("graph1").TreeSetNodeForeColorAtTreeLevel(1 ,"255,0,0")