TreeSetNodeImageAt method (WinStudio scripts)

Applies To

IWSFormComponent interface, tree objects

Definition

Sets the image for a specific node in the normal, unselected state to display.

Syntax

object.TreeSetNodeImageAt( string1, string2 )

Part Description
object Required. A reference to a valid tree component object.
string1 Required. The tree node ID (GUID) or node index series.
string2 Required. The image file name.

Remarks

The image can be defined using an explicit file path; otherwise, WinStudio uses the current working directory to locate the image file.

Examples

ThisForm.Components("graph1").TreeSetNodeImageAt("My Tree Node ID", "MyImage.jpg")
ThisForm.Components("graph1").TreeSetNodeImageAt("2,0", "MyImage.png")
Related topics