TreeSetNodeImageAtTreeLevel method (WinStudio scripts)

Applies To

IWSFormComponent interface, tree objects

Definition

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

Syntax

object.TreeSetNodeImageAtTreeLevel( integer, string )

Part Description
object Required. A reference to a valid tree component object.
integer Required. The tree level.
string 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.

Example

ThisForm.Components("graph1"). TreeSetNodeImageAtTreeLevel(1, "MyImage.png")