WinStudio
IWSFormComponent interface, tree objects
Sets the image for a specific node in the normal, unselected state to display.
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. |
The image can be defined using an explicit file path; otherwise, WinStudio uses the current working directory to locate the image file.
For more information on the GUID and index series, see Notes on the Tree Node ID (GUID) and Index Series.
ThisForm.Components("graph1").TreeSetNodeImageAt("My Tree Node ID", "MyImage.jpg") ThisForm.Components("graph1").TreeSetNodeImageAt("2,0", "MyImage.png")