TreeViewSetImageList

 

Register a list of images to be used in the Treeview object.

 

void @TreeViewSetImageList(string classname, object imageList);

 

Parameters

string classname : The class name of the object

object imageList : Image List

 

Return Value

None

 

Example

im = @ImageListNew();
@ImageListSetSize(im, 32, 32);
@ImageListAdd(im, "Folder.png");
@ImageListAdd(im, "Module.png");
@TreeViewSetImageList("TreeView1", im);

 

Description : Add the Folder.png and Moldule.png files as an image item to the 32*32 image list and register it as an image list to be used for the TreeView1 object.

 

Version Information

Supported Version: 10.3.3

 

Related Helps

@TreeNodeAdd()

@TreeNodeGetFullPath()

@TreeNodeGetText()

@TreeNodeNew()

@TreeViewExpandAll()

@TreeViewGetSelectedNode()

@TreeViewNodeAdd()

@TreeViewNodeClear()

@TreeViewSeekNode()

@TreeViewSetImageList()

@TreeViewSetSelectedNode()