Base:
property
ForeColor
System.Windows.Forms.ToolStripItem.ForeColor
10 writes to ForeColor
System.Windows.Forms.Tests (10)
System\Windows\Forms\ToolStripControlHostTests.cs (10)
1088
ForeColor
= value
1095
item.
ForeColor
= value;
1116
item.
ForeColor
= Color.Red;
1121
item.
ForeColor
= Color.Red;
1126
item.
ForeColor
= Color.Empty;
1132
item.
ForeColor
= Color.Red;
1144
Assert.Throws<ObjectDisposedException>(() => item.
ForeColor
= Color.Red);
1155
item.
ForeColor
= Color.Red;
1186
item.
ForeColor
= Color.Red;
4430
item.
ForeColor
= Color.Black;
20 references to ForeColor
System.Windows.Forms.Tests (20)
System\Windows\Forms\ToolStripControlHostTests.cs (20)
86
Assert.Equal(c.ForeColor, item.
ForeColor
);
631
Assert.Equal(Color.Red, item.
ForeColor
);
1078
Assert.Throws<ObjectDisposedException>(() => item.
ForeColor
);
1090
Assert.Equal(expected, item.
ForeColor
);
1096
Assert.Equal(expected, item.
ForeColor
);
1117
Assert.Equal(Color.Red, item.
ForeColor
);
1122
Assert.Equal(Color.Red, item.
ForeColor
);
1127
Assert.Equal(Control.DefaultForeColor, item.
ForeColor
);
1133
Assert.Equal(Color.Red, item.
ForeColor
);
1150
PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ToolStripControlHost))[nameof(ToolStripControlHost.
ForeColor
)];
1156
Assert.Equal(Color.Red, item.
ForeColor
);
1160
Assert.Equal(Control.DefaultForeColor, item.
ForeColor
);
1167
PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ToolStripControlHost))[nameof(ToolStripControlHost.
ForeColor
)];
1181
PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ToolStripControlHost))[nameof(ToolStripControlHost.
ForeColor
)];
1187
Assert.Equal(Color.Red, item.
ForeColor
);
1191
Assert.Equal(Control.DefaultForeColor, item.
ForeColor
);
1198
PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ToolStripControlHost))[nameof(ToolStripControlHost.
ForeColor
)];
4426
Assert.Equal(Control.DefaultForeColor, item.
ForeColor
);
4432
Assert.Equal(Control.DefaultForeColor, item.
ForeColor
);
4437
Assert.Equal(Control.DefaultForeColor, item.
ForeColor
);