Partager via


TreeView.Collapsed Événement

Définition

Se produit lorsqu’un nœud de l’arborescence est réduit.

// Register
event_token Collapsed(TypedEventHandler<TreeView, TreeViewCollapsedEventArgs const&> const& handler) const;

// Revoke with event_token
void Collapsed(event_token const* cookie) const;

// Revoke with event_revoker
TreeView::Collapsed_revoker Collapsed(auto_revoke_t, TypedEventHandler<TreeView, TreeViewCollapsedEventArgs const&> const& handler) const;
public event TypedEventHandler<TreeView,TreeViewCollapsedEventArgs> Collapsed;
function onCollapsed(eventArgs) { /* Your code */ }
treeView.addEventListener("collapsed", onCollapsed);
treeView.removeEventListener("collapsed", onCollapsed);
- or -
treeView.oncollapsed = onCollapsed;
Public Custom Event Collapsed As TypedEventHandler(Of TreeView, TreeViewCollapsedEventArgs) 

Type d'événement

S’applique à