SetItemCanExpand Method
Object List Next Object
Defined By: Indented List
Description:
Allows or prevents any item from expanding or collapsing as a result of user
interaction.
Declaration:
Sub SetItemCanExpand(ByVal index As Integer, ByVal canExpand As Long)
Details:
SetItemCanExpand will enable or disable a user's ability to manually expand or
collapse items through mouse events. If canExpand is passed as True, a user can expand and collapse items by clicking on an item’s icon or double clicking the text (if EnabledOnDblClick is True).
SetItemCanExpand will not deny an interpretive ExpandItem or CollapseItem call.
Item’s canExpand defaults to False. Whether or not an item can expand can be
determined with the ItemCanExpand Method.
See Also:
ItemCanExpand method