8 references to new
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) };