JVCL Help:IJvDataConsumerViewList.ToggleItem

From Project JEDI Wiki
Jump to navigationJump to search
JEDI Visual Component Library Help

Search in JVCL Help

 
Search in all projects
 

Summary

Toggles the expanded state of an item.


Pascal

 procedureToggleItem(Index: Integer);


Parameters

Parameters Description
Index: Integer 0-based index in the view list of the item to expand or collapse. Allowed values ranges from 0 to Count-1


Description

ToggleItem expands or collapses the specified item, depending on its current state.
If the specified item is expanded its sub items will be hidden, collapsing the item.
If the specified item is collapsed and has sub items, the sub items will be added, expanding the item. Note that upon expanding, the AutoExpandLevel property is taken into account.


See Also

IJvDataConsumerViewList.Count, IJvDataConsumerViewList.ItemHasChildren, IJvDataConsumerViewList.ItemIsExpanded


About

Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page