Page History
...
The ItemExpanded property expands or collapses an item. An expanded item will show all its children. Use this property to programmatically change the expanded state of an item. Use the ItemExpandable property if you wish to limit the user's ability to expand and collapse the item.
Use the DefExpanded property to set the default expanded state for new items.
...
Code Block |
---|
// Collapse the item whose key is "Item1" Set_Property(@Window:".OLE_TREE", "OLE.ItemExpanded[Item1]", 0) // Expand all items Set_Property(@Window:".OLE_TREE", "OLE.ItemExpanded[All]", 1) |