8 instantiations of TreeViewCancelEventArgs
System.Windows.Forms (5)
System\Windows\Forms\Controls\TreeView\TreeNode.cs (1)
1472TreeViewCancelEventArgs e = new(this, false, TreeViewAction.Collapse);
System\Windows\Forms\Controls\TreeView\TreeView.cs (4)
1655TreeViewCancelEventArgs viewCancelEventArgs = new(node, false, actionTaken); 2445e = new TreeViewCancelEventArgs(NodeFromHandle(item.hItem), false, TreeViewAction.Expand); 2450e = new TreeViewCancelEventArgs(NodeFromHandle(item.hItem), false, TreeViewAction.Collapse); 2510TreeViewCancelEventArgs e = new(node, false, action);
System.Windows.Forms.Tests (3)
System\Windows\Forms\TreeViewCancelEventArgsTests.cs (1)
19TreeViewCancelEventArgs e = new(node, cancel, action);
System\Windows\Forms\TreeViewTests.cs (2)
5562yield return new object[] { new TreeViewCancelEventArgs(null, false, TreeViewAction.ByKeyboard) }; 5563yield return new object[] { new TreeViewCancelEventArgs(new TreeNode(), true, TreeViewAction.ByKeyboard) };
17 references to TreeViewCancelEventArgs
System.Windows.Forms (9)
System\Windows\Forms\Controls\TreeView\TreeNode.cs (1)
1472TreeViewCancelEventArgs e = new(this, false, TreeViewAction.Collapse);
System\Windows\Forms\Controls\TreeView\TreeView.cs (7)
1655TreeViewCancelEventArgs viewCancelEventArgs = new(node, false, actionTaken); 2110protected virtual void OnBeforeCheck(TreeViewCancelEventArgs e) => 2144protected internal virtual void OnBeforeCollapse(TreeViewCancelEventArgs e) => 2167protected virtual void OnBeforeExpand(TreeViewCancelEventArgs e) => 2202protected virtual void OnBeforeSelect(TreeViewCancelEventArgs e) => 2442TreeViewCancelEventArgs? e = null; 2510TreeViewCancelEventArgs e = new(node, false, action);
System\Windows\Forms\Controls\TreeView\TreeViewCancelEventHandler.cs (1)
11public delegate void TreeViewCancelEventHandler(object? sender, TreeViewCancelEventArgs e);
System.Windows.Forms.Tests (8)
System\Windows\Forms\TreeViewCancelEventArgsTests.cs (1)
19TreeViewCancelEventArgs e = new(node, cancel, action);
System\Windows\Forms\TreeViewTests.cs (7)
5568public void TreeView_OnBeforeExpand_Invoke_CallsBeforeExpand(TreeViewCancelEventArgs eventArgs) 5616public void TreeView_OnBeforeCollapse_Invoke_CallsBeforeCollapse(TreeViewCancelEventArgs eventArgs) 5640public void TreeView_OnBeforeSelect_Invoke_CallsBeforeSelect(TreeViewCancelEventArgs eventArgs) 7640public new void OnBeforeCheck(TreeViewCancelEventArgs e) => base.OnBeforeCheck(e); 7642public new void OnBeforeCollapse(TreeViewCancelEventArgs e) => base.OnBeforeCollapse(e); 7644public new void OnBeforeExpand(TreeViewCancelEventArgs e) => base.OnBeforeExpand(e); 7648public new void OnBeforeSelect(TreeViewCancelEventArgs e) => base.OnBeforeSelect(e);