Base:
property
ForeColor
System.Windows.Forms.Control.ForeColor
11 writes to ForeColor
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\DesignBindingPicker.cs (1)
238
ForeColor
= SystemColors.WindowText,
System.Windows.Forms.Tests (10)
System\Windows\Forms\TreeViewTests.cs (10)
1472
ForeColor
= value
1477
control.
ForeColor
= value;
1488
control.
ForeColor
= value;
1492
control.
ForeColor
= value;
1510
control.
ForeColor
= Color.Red;
1515
control.
ForeColor
= Color.Red;
1520
control.
ForeColor
= Color.Empty;
1526
control.
ForeColor
= Color.Red;
6021
ForeColor
= Color.Blue,
6101
ForeColor
= Color.Blue,
16 references to ForeColor
System.Windows.Forms (3)
System\Windows\Forms\Controls\TreeView\TreeView.cs (3)
448
PInvokeCore.SendMessage(this, PInvoke.TVM_SETTEXTCOLOR, 0,
ForeColor
.ToWin32());
1890
c =
ForeColor
;
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 (13)
System\Windows\Forms\TreeViewTests.cs (13)
67
Assert.Equal(SystemColors.WindowText, control.
ForeColor
);
1474
Assert.Equal(expected, control.
ForeColor
);
1478
Assert.Equal(expected, control.
ForeColor
);
1489
Assert.Equal(expected, control.
ForeColor
);
1493
Assert.Equal(expected, control.
ForeColor
);
1511
Assert.Equal(Color.Red, control.
ForeColor
);
1516
Assert.Equal(Color.Red, control.
ForeColor
);
1521
Assert.Equal(SystemColors.WindowText, control.
ForeColor
);
1527
Assert.Equal(Color.Red, control.
ForeColor
);
6049
Assert.Equal(Color.Blue, control.
ForeColor
);
6067
Assert.Equal(Color.Blue, control.
ForeColor
);
6130
Assert.Equal(Color.Blue, control.
ForeColor
);
6148
Assert.Equal(Color.Blue, control.
ForeColor
);