TreeView.Collapse Method (TreeViewItem, Logic, Logic) | |
Collapse a tree view item, hiding its child items.
Namespace:
XSharp.VO.SDK
Assembly:
XSharp.VOGUIClasses (in XSharp.VOGUIClasses.dll) Version: 2.21
Syntax VIRTUAL METHOD Collapse(
oItem AS TreeViewItem,
lRemoveChildItems AS LOGIC,
lAll AS LOGIC
) AS LOGIC
public virtual bool Collapse(
TreeViewItem oItem,
bool lRemoveChildItems,
bool lAll
)
Request Example
View SourceParameters
- oItem
- Type: TreeViewItem
The TreeViewItem object representing the tree view item to be collapsed. - lRemoveChildItems
- Type: Logic
A logical value indicating whether child tree view items of the specified item will be removed when the item is collapsed. If omitted, the default is FALSE. - lAll
- Type: Logic
If lAll is TRUE(default = FALSE), the operation is done for the complete subtree of the specified item.
Return Value
Type:
Logic
TRUE if successful; otherwise, FALSE.
See Also