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