TreeSetNodeFontAtTreeLevel method (WinStudio scripts)

Applies To

IWSFormComponent interface, tree objects

Definition

Sets the text font for a specific tree level.

Syntax

object.TreeSetNodeFontAt( integer, string )

Part Description
object Required. A reference to a valid tree component object.
integer Required. The tree level.
string Required. Consists of fourteen comma-separated values:

    Size,0,0,0,Weight,Italic,Underline,Strikethrough,0,0,0,0,0,FontFamily

For more information about these values, see "Settings" below.

Settings

Setting Description
Size A decimal value representing the point size.
Weight Range from 0 (non-bold) to 700 (bold).
Italic 0 = Normal text.

1 = Italicized text.

Underline 0 = Text not underlined.

1 = Text underlined.

Strikethrough 0 = Normal text.

1 = Text struck through.

FontFamily Name of the font to be used.

Example

'Set to 12-point bold Times New Roman.
Dim fontDescriptor As String = "12,0,0,0,700,0,0,0,0,0,0,0,0,Times New Roman"   
ThisForm.Components("tree1").TreeSetNodeFontAtTreeLevel(1, fontDescriptor)