TreeView.Toggle Method (Typed) | |
Toggle the expanded or collapsed state of a tree view item, showing or hiding its child items appropriately.
Namespace:
XSharp.VO.SDK
Assembly:
XSharp.VOGUIClasses (in XSharp.VOGUIClasses.dll) Version: 2.21
Syntax VIRTUAL METHOD Toggle(
symName AS SYMBOL,
lAll AS LOGIC,
lForceNotify AS LOGIC
) AS LOGIC
public virtual bool Toggle(
Symbol symName,
[DefaultParameterValueAttribute(false, 0)] bool lAll,
[DefaultParameterValueAttribute(false, 0)] bool lForceNotify
)
Request Example
View SourceParameters
- symName
- Type: Symbol
The symbolic name of the tree view item to be toggled or the TreeViewItem object representing the tree view item to be toggled. - lAll
- Type: Logic
If lAll is TRUE(default = FALSE), the operation is done for the complete subtree of the specified item. - lForceNotify
- Type: Logic
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:
Logic
TRUE if successful; otherwise, FALSE.
See Also