Collapse Method (ExpandItem)

Class

  • ExpandItem
  • MsuiaComboBox
  • MsuiaCustom
  • MsuiaDataItem
  • MsuiaGroup
  • MsuiaListItem
  • MsuiaMenuBar
  • MsuiaMenuItem
  • MsuiaSplitButton
  • MsuiaToolBar
  • MsuiaTreeItem

Action

Collapse the expandable items.

Availability

This functionality is supported only if you are using the Open Agent.

Syntax

element.Collapse ()

Example

TreeListView.MsuiaTree1.SystemWindowsDependencyObjec.Collapse()

Notes

Collapse collapses the specified item if it is currently expanded (that is, has visible children).