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