Articles in this section

How to set custom images for expand or collapse (+/-) signs in the WinForms TreeViewAdv?

Custom images for expand or collapse signs

The standard +/- signs for the expand or collapse buttons in the TreeViewAdv can be replaced with the custom images by setting ImageList to the newly added NodeStateImageList property of the TreeViewAdv.

By setting some particular index of default image for expand/collapse button in the DefaultCollapseImageIndex and DefaultExpandImageIndex, all the ParentNode can be displayed with default Images for expanding and collapsing actions.

Each Parent Node's +/- signs can be set with different images, by setting the TreeNodeAdv's CollpaseImageIndex and ExpandImageIndex.Single click on the image expands or collapses the current node.

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Access denied
Access denied