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