[Overview][Types][Classes][Procedures and functions][Index] | Reference for unit 'ShellCtrls' (#lcl)

# TExpandCollapseMode

Indicates actions performed for child nodes when a shell tree node is expanded or collapsed.

## Declaration

Source position: shellctrls.pas line 48

`type TExpandCollapseMode = (`
`ecmRefreshedExpanding,` |  | Clear existing children before expanding.
`ecmKeepChildren,` |  | Do not clear children of previously expanded tree nodes when they are collapsed.
`ecmCollapseAndClear` |  | Clear children when a node is collapsed.
`);`

## Description

TExpandCollapseMode is an enumerated type with values that indicate the actions performed for child nodes when a shell tree node is expanded or collapsed. TExpandCollapseMode is the type used to implement the ExpandCollapseMode property in TCustomShellTreeView.

## Version info

Added in LCL version 3.0.

## See also

TCustomShellTreeView.ExpandCollapseMode |  | Controls the actions performed when a tree node is expanded or collapsed on the control.
TCustomShellTreeView.CanExpand |  | Determines if the specified tree node can be expanded in the shell tree view control.
TCustomShellTreeView.Collapse |  | Removes child nodes (if needed) when the specified tree node is collapsed.