9 writes to ForeColor
System.Windows.Forms (5)
System\Windows\Forms\Controls\TreeView\TreeNode.cs (2)
424
_propBag.
ForeColor
= Color.Empty;
440
_propBag.
ForeColor
= value;
System\Windows\Forms\Controls\TreeView\TreeView.cs (1)
2892
retval.
ForeColor
= node._propBag.ForeColor;
System\Windows\Forms\OwnerDrawPropertyBag.cs (2)
28
ForeColor
= (Color)entry.Value!;
80
result.
ForeColor
= value.ForeColor;
System.Windows.Forms.Tests (4)
System\Windows\Forms\OwnerDrawPropertyBagTests.cs (4)
64
bag.
ForeColor
= value;
69
bag.
ForeColor
= value;
81
value.
ForeColor
= Color.Red;
112
original.
ForeColor
= Color.Red;
14 references to ForeColor
System.Windows.Forms (8)
System\Windows\Forms\Controls\TreeView\TreeNode.cs (1)
413
return _propBag.
ForeColor
;
System\Windows\Forms\Controls\TreeView\TreeView.cs (2)
2783
Color riFore = renderinfo.
ForeColor
;
2892
retval.ForeColor = node._propBag.
ForeColor
;
System\Windows\Forms\OwnerDrawPropertyBag.cs (5)
26
else if (entry.Name == nameof(
ForeColor
))
64
public virtual bool IsEmpty() => Font is null &&
ForeColor
.IsEmpty && BackColor.IsEmpty;
80
result.ForeColor = value.
ForeColor
;
89
si.AddValue(nameof(
ForeColor
),
ForeColor
);
System.Windows.Forms.Tests (6)
System\Windows\Forms\OwnerDrawPropertyBagTests.cs (6)
19
Assert.Equal(Color.Empty, bag.
ForeColor
);
65
Assert.Equal(value, bag.
ForeColor
);
70
Assert.Equal(value, bag.
ForeColor
);
87
Assert.Equal(Color.Red, bag.
ForeColor
);
100
Assert.Equal(Color.Empty, bag.
ForeColor
);
126
Assert.Equal(Color.Red, bag.
ForeColor
);