Base:
property
BackColor
System.Windows.Forms.ToolStripItem.BackColor
10 writes to BackColor
System.Windows.Forms.Tests (10)
System\Windows\Forms\ToolStripControlHostTests.cs (10)
269BackColor = value 276item.BackColor = value; 297item.BackColor = Color.Red; 302item.BackColor = Color.Red; 307item.BackColor = Color.Empty; 313item.BackColor = Color.Red; 325Assert.Throws<ObjectDisposedException>(() => item.BackColor = Color.Red); 336item.BackColor = Color.Red; 367item.BackColor = Color.Red; 4397item.BackColor = Color.Black;
20 references to BackColor
System.Windows.Forms.Tests (20)
System\Windows\Forms\ToolStripControlHostTests.cs (20)
60Assert.Equal(c.BackColor, item.BackColor); 259Assert.Throws<ObjectDisposedException>(() => item.BackColor); 271Assert.Equal(expected, item.BackColor); 277Assert.Equal(expected, item.BackColor); 298Assert.Equal(Color.Red, item.BackColor); 303Assert.Equal(Color.Red, item.BackColor); 308Assert.Equal(Control.DefaultBackColor, item.BackColor); 314Assert.Equal(Color.Red, item.BackColor); 331PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ToolStripControlHost))[nameof(ToolStripControlHost.BackColor)]; 337Assert.Equal(Color.Red, item.BackColor); 341Assert.Equal(Control.DefaultBackColor, item.BackColor); 348PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ToolStripControlHost))[nameof(ToolStripControlHost.BackColor)]; 362PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ToolStripControlHost))[nameof(ToolStripControlHost.BackColor)]; 368Assert.Equal(Color.Red, item.BackColor); 372Assert.Equal(Control.DefaultBackColor, item.BackColor); 379PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ToolStripControlHost))[nameof(ToolStripControlHost.BackColor)]; 548Assert.Equal(Color.Red, item.BackColor); 4393Assert.Equal(Control.DefaultBackColor, item.BackColor); 4399Assert.Equal(Control.DefaultBackColor, item.BackColor); 4404Assert.Equal(Control.DefaultBackColor, item.BackColor);