TreeView.Collapse Method | |
Collapse a tree view item, hiding its child items.
Namespace:
VO
Assembly:
VOGUIClasses (in VOGUIClasses.dll) Version: 2.19
Syntax VIRTUAL METHOD Collapse(
symName,
lRemoveChildItems,
lAll,
lForceNotify
) AS USUAL CLIPPER
[ClipperCallingConventionAttribute(new string[] { ... })]
public virtual Usual Collapse(
Usual symName = default,
Usual lRemoveChildItems = default,
Usual lAll = default,
Usual lForceNotify = default
)
Request Example
View SourceParameters
- symName (Optional)
- Type: Usual
The symbolic name of the tree view item to be collapsed. - lRemoveChildItems (Optional)
- Type: Usual
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 (Optional)
- Type: Usual
If lAll is TRUE(default = FALSE), the operation is done for the complete subtree of the specified item. - lForceNotify (Optional)
- Type: Usual
If lForceNotify is TRUE(default = FALSE), a notify message Window:TreeViewItemExpanding() and Window:TreeViewItemExpanded() is sent for each item whose expand state is changed.
Generally windows will only send these messages when an item is first expanded. It depends on the TVIS_EXPANDEDONCE state. (see in Platform SDK the TVM_EXPAND Message for more details.)
Return Value
Type:
Usual
TRUE if successful; otherwise, FALSE.
See Also