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