Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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)

See Also

DefExpandedItemExpandable