19 writes to ForeColor
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\DesignBindingPicker.cs (1)
707dataSourceNode.ForeColor = SystemColors.GrayText;
System.Windows.Forms.Tests (18)
SerializableTypesTests.cs (1)
353ForeColor = Color.Green,
System\Windows\Forms\TreeNodeTests.cs (17)
708ForeColor = value 713node.ForeColor = value; 725node.ForeColor = value; 730node.ForeColor = value; 756node.ForeColor = value; 764node.ForeColor = value; 785ForeColor = Color.Blue 788node.ForeColor = value; 792node.ForeColor = value; 803ForeColor = Color.Blue 807node.ForeColor = value; 812node.ForeColor = value; 831ForeColor = Color.Blue 842node.ForeColor = value; 850node.ForeColor = value; 865node.ForeColor = Color.Red; 881node.ForeColor = Color.Red;
29 references to ForeColor
System.Windows.Forms (4)
System\Windows\Forms\Controls\TreeView\TreeNode.cs (2)
417Color oldfc = ForeColor; 2045return ForeColor != Color.Empty;
System\Windows\Forms\Controls\TreeView\TreeView.cs (2)
2841Color color = (((curState & TreeNodeStates.Selected) == TreeNodeStates.Selected) && node.TreeView.Focused) ? SystemColors.HighlightText : (node.ForeColor != Color.Empty) ? node.ForeColor : node.TreeView.ForeColor;
System.Windows.Forms.Tests (25)
SerializableTypesTests.cs (1)
379Assert.Equal(Color.Green, result.ForeColor);
System\Windows\Forms\TreeNodeCollectionTests.cs (1)
27Assert.Equal(Color.Empty, treeNode.ForeColor);
System\Windows\Forms\TreeNodeTests.cs (23)
22Assert.Equal(Color.Empty, node.ForeColor); 62Assert.Equal(Color.Empty, node.ForeColor); 110Assert.Equal(Color.Empty, node.ForeColor); 153Assert.Equal(Color.Empty, node.ForeColor); 201Assert.Equal(Color.Empty, node.ForeColor); 710Assert.Equal(value, node.ForeColor); 714Assert.Equal(value, node.ForeColor); 726Assert.Equal(value, node.ForeColor); 731Assert.Equal(value, node.ForeColor); 757Assert.Equal(value, node.ForeColor); 765Assert.Equal(value, node.ForeColor); 789Assert.Equal(value, node.ForeColor); 793Assert.Equal(value, node.ForeColor); 808Assert.Equal(value, node.ForeColor); 813Assert.Equal(value, node.ForeColor); 843Assert.Equal(value, node.ForeColor); 851Assert.Equal(value, node.ForeColor); 861PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(TreeNode))[nameof(TreeNode.ForeColor)]; 866Assert.Equal(Color.Red, node.ForeColor); 870Assert.Equal(Color.Red, node.ForeColor); 877PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(TreeNode))[nameof(TreeNode.ForeColor)]; 882Assert.Equal(Color.Red, node.ForeColor); 886Assert.Equal(Color.Red, node.ForeColor);