1 override of BackColor
System.Windows.Forms (1)
winforms\Managed\System\WinForms\ToolStripControlHost.cs (1)
71
public override Color
BackColor
{
3 writes to BackColor
System.Windows.Forms (3)
winforms\Managed\System\WinForms\ToolStripItem.cs (1)
3767
BackColor
= Color.Empty;
winforms\Managed\System\WinForms\ToolStripMenuItem.cs (1)
622
menuItem.
BackColor
= this.BackColor;
winforms\Managed\System\WinForms\ToolStripSplitButton.cs (1)
302
splitButtonButton.
BackColor
= this.BackColor;
31 references to BackColor
System.Windows.Forms (31)
winforms\Managed\System\WinForms\ToolStripItem.cs (2)
554
Color c =
BackColor
;
559
if (!c.Equals(
BackColor
)) {
winforms\Managed\System\WinForms\ToolStripMenuItem.cs (1)
622
menuItem.BackColor = this.
BackColor
;
winforms\Managed\System\WinForms\ToolStripProfessionalRenderer.cs (12)
250
ControlPaint.DrawBackgroundImage(g, item.BackgroundImage, item.
BackColor
, item.BackgroundImageLayout, bounds, fillRect);
323
ControlPaint.DrawBackgroundImage(g, item.BackgroundImage, item.
BackColor
, item.BackgroundImageLayout, bounds, fillRect);
530
ControlPaint.DrawBackgroundImage(g, item.BackgroundImage, item.
BackColor
, item.BackgroundImageLayout, bounds, fillRect);
532
else if (item.Owner != null && item.
BackColor
!= item.Owner.BackColor) {
533
using (Brush b = new SolidBrush(item.
BackColor
)) {
573
ControlPaint.DrawBackgroundImage(g, item.BackgroundImage, item.
BackColor
, item.BackgroundImageLayout, bounds, fillRect);
575
else if (item.Owner != null && item.
BackColor
!= item.Owner.BackColor) {
576
using (Brush b = new SolidBrush(item.
BackColor
)) {
963
ControlPaint.DrawBackgroundImage(g, item.BackgroundImage, item.
BackColor
, item.BackgroundImageLayout, bounds, fillRect);
1377
ControlPaint.DrawBackgroundImage(g, item.BackgroundImage, item.
BackColor
, item.BackgroundImageLayout, bounds, fillRect);
1388
else if (item.Owner != null && item.
BackColor
!= item.Owner.BackColor) {
1389
using (Brush b = new SolidBrush(item.
BackColor
)) {
winforms\Managed\System\WinForms\ToolStripSplitButton.cs (1)
302
splitButtonButton.BackColor = this.
BackColor
;
winforms\Managed\System\WinForms\ToolStripSystemRenderer.cs (15)
379
ControlPaint.DrawBackgroundImage(g, item.BackgroundImage, item.
BackColor
, item.BackgroundImageLayout, item.ContentRectangle, item.ContentRectangle);
382
FillBackground(g, item.ContentRectangle, item.
BackColor
);
419
ControlPaint.DrawBackgroundImage(g, item.BackgroundImage, item.
BackColor
, item.BackgroundImageLayout, item.ContentRectangle, fillRect);
422
FillBackground(g, fillRect, item.
BackColor
);
501
ControlPaint.DrawBackgroundImage(g, splitButton.BackgroundImage, splitButton.
BackColor
, splitButton.BackgroundImageLayout, fillRect, fillRect);
522
ControlPaint.DrawBackgroundImage(g, splitButton.BackgroundImage, splitButton.
BackColor
, splitButton.BackgroundImageLayout, bounds, fillRect);
526
FillBackground(g,splitButtonButtonRect, splitButton.
BackColor
);
538
FillBackground(g, dropDownRect, splitButton.
BackColor
);
585
ControlPaint.DrawBackgroundImage(g, item.BackgroundImage, item.
BackColor
, item.BackgroundImageLayout, fillRect, fillRect);
589
if ((parent != null) && (state != ToolBarState.Checked) && (item.
BackColor
!= parent.BackColor)) {
590
FillBackground(g, fillRect, item.
BackColor
);
612
Color backColor = item.
BackColor
;
705
ControlPaint.DrawBackgroundImage(g, item.BackgroundImage, item.
BackColor
, item.BackgroundImageLayout, fillRect, fillRect);
710
if (vsRenderer == null || (item.
BackColor
!= SystemColors.Control)) {
711
FillBackground(g, fillRect, item.
BackColor
);