38 references to TreeViewAction
System.Windows.Forms (26)
System\Windows\Forms\Controls\TreeView\TreeNode.cs (3)
350
bool eventReturn = tv.TreeViewBeforeCheck(this,
TreeViewAction
.Unknown);
354
tv.TreeViewAfterCheck(this,
TreeViewAction
.Unknown);
1472
TreeViewCancelEventArgs e = new(this, false,
TreeViewAction
.Collapse);
System\Windows\Forms\Controls\TreeView\TreeView.cs (18)
1653
internal bool TreeViewBeforeCheck(TreeNode? node,
TreeViewAction
actionTaken)
1660
internal void TreeViewAfterCheck(TreeNode node,
TreeViewAction
actionTaken)
2262
bool eventReturn = TreeViewBeforeCheck(node,
TreeViewAction
.ByKeyboard);
2266
TreeViewAfterCheck(node,
TreeViewAction
.ByKeyboard);
2445
e = new TreeViewCancelEventArgs(NodeFromHandle(item.hItem), false,
TreeViewAction
.Expand);
2450
e = new TreeViewCancelEventArgs(NodeFromHandle(item.hItem), false,
TreeViewAction
.Collapse);
2473
e = new TreeViewEventArgs(node,
TreeViewAction
.Collapse);
2478
e = new TreeViewEventArgs(node,
TreeViewAction
.Expand);
2498
TreeViewAction
action =
TreeViewAction
.Unknown;
2502
action =
TreeViewAction
.ByKeyboard;
2506
action =
TreeViewAction
.ByMouse;
2527
TreeViewAction
action =
TreeViewAction
.Unknown;
2531
action =
TreeViewAction
.ByKeyboard;
2535
action =
TreeViewAction
.ByMouse;
3286
bool eventReturn = TreeViewBeforeCheck(node,
TreeViewAction
.ByMouse);
3290
TreeViewAfterCheck(node,
TreeViewAction
.ByMouse);
System\Windows\Forms\Controls\TreeView\TreeViewCancelEventArgs.cs (2)
16
public TreeViewCancelEventArgs(TreeNode? node, bool cancel,
TreeViewAction
action)
25
public
TreeViewAction
Action { get; }
System\Windows\Forms\Controls\TreeView\TreeViewEventArgs.cs (3)
17
Action =
TreeViewAction
.Unknown;
20
public TreeViewEventArgs(TreeNode? node,
TreeViewAction
action)
31
public
TreeViewAction
Action { get; }
System.Windows.Forms.Tests (12)
System\Windows\Forms\TreeViewCancelEventArgsTests.cs (3)
11
yield return new object[] { null, false,
TreeViewAction
.Unknown - 1 };
12
yield return new object[] { new TreeNode(), true,
TreeViewAction
.ByKeyboard };
17
public void Ctor_TreeNode_Bool_TreeViewAction(TreeNode node, bool cancel,
TreeViewAction
action)
System\Windows\Forms\TreeViewEventArgsTests.cs (4)
21
Assert.Equal(
TreeViewAction
.Unknown, e.Action);
26
yield return new object[] { null,
TreeViewAction
.Unknown - 1 };
27
yield return new object[] { new TreeNode(),
TreeViewAction
.ByKeyboard };
32
public void Ctor_TreeNode_TreeViewAction(TreeNode node,
TreeViewAction
action)
System\Windows\Forms\TreeViewTests.cs (5)
5419
yield return new object[] { new TreeViewEventArgs(new TreeNode(),
TreeViewAction
.ByMouse) };
5562
yield return new object[] { new TreeViewCancelEventArgs(null, false,
TreeViewAction
.ByKeyboard) };
5563
yield return new object[] { new TreeViewCancelEventArgs(new TreeNode(), true,
TreeViewAction
.ByKeyboard) };
5798
Assert.Equal(
TreeViewAction
.ByKeyboard, e.Action);
5807
Assert.Equal(
TreeViewAction
.ByKeyboard, e.Action);