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