16 references to TreeNodeStates
System.Windows.Forms (9)
System\Windows\Forms\Controls\TreeView\DrawTreeNodeEventArgs.cs (2)
20
TreeNodeStates
state)
46
public
TreeNodeStates
State { get; }
System\Windows\Forms\Controls\TreeView\TreeView.cs (7)
2766
e = new DrawTreeNodeEventArgs(g, node, bounds, (
TreeNodeStates
)(state));
2832
DrawTreeNodeEventArgs e = new(g, node, bounds, (
TreeNodeStates
)(nmtvcd->nmcd.uItemState));
2838
TreeNodeStates
curState = e.State;
2841
Color color = (((curState &
TreeNodeStates
.Selected) ==
TreeNodeStates
.Selected) && node.TreeView.Focused) ? SystemColors.HighlightText : (node.ForeColor != Color.Empty) ? node.ForeColor : node.TreeView.ForeColor;
2844
if ((curState &
TreeNodeStates
.Selected) ==
TreeNodeStates
.Selected)
System.Windows.Forms.Tests (7)
System\Windows\Forms\DrawTreeNodeEventArgsTests.cs (5)
13
yield return new object[] { null, Rectangle.Empty,
TreeNodeStates
.Checked - 1 };
14
yield return new object[] { new TreeNode(), new Rectangle(1, 2, 3, 4),
TreeNodeStates
.Checked };
15
yield return new object[] { new TreeNode(), new Rectangle(-1, -2, -3, -4),
TreeNodeStates
.Checked };
20
public void Ctor_Graphics_TreeNode_Rectangle_TreeNodeStates(TreeNode node, Rectangle bounds,
TreeNodeStates
state)
38
DrawTreeNodeEventArgs e = new(graphics, new TreeNode(), new Rectangle(1, 2, 3, 4),
TreeNodeStates
.Checked)
System\Windows\Forms\TreeViewTests.cs (2)
5668
yield return new object[] { new DrawTreeNodeEventArgs(graphics, null, Rectangle.Empty,
TreeNodeStates
.Checked) };
5670
yield return new object[] { new DrawTreeNodeEventArgs(graphics, new TreeNode(), new Rectangle(1, 2, 3, 4),
TreeNodeStates
.Checked) };