1 override of BackColor
System.Windows.Forms (1)
System\Windows\Forms\Controls\ToolStrips\ToolStripControlHost.cs (1)
56public override Color BackColor
4 writes to BackColor
System.Windows.Forms (3)
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (1)
3369public virtual void ResetBackColor() => BackColor = Color.Empty;
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.cs (1)
496menuItem.BackColor = BackColor;
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitButton.cs (1)
230_splitButtonButton.BackColor = BackColor;
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\ToolStripDropDownDesigner.cs (1)
384BackColor = SystemColors.Window,
36 references to BackColor
System.Windows.Forms (36)
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (2)
530Color previous = BackColor; 532if (!previous.Equals(BackColor))
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.cs (1)
496menuItem.BackColor = BackColor;
System\Windows\Forms\Controls\ToolStrips\ToolstripProfessionalRenderer.cs (12)
270ControlPaint.DrawBackgroundImage(g, item.BackgroundImage, item.BackColor, item.BackgroundImageLayout, bounds, fillRect); 358ControlPaint.DrawBackgroundImage(g, item.BackgroundImage, item.BackColor, item.BackgroundImageLayout, bounds, fillRect); 598item.BackColor, 603else if (item.Owner is not null && item.BackColor != item.Owner.BackColor) 605using var brush = item.BackColor.GetCachedSolidBrushScope(); 652ControlPaint.DrawBackgroundImage(g, item.BackgroundImage, item.BackColor, item.BackgroundImageLayout, bounds, fillRect); 654else if (item.Owner is not null && item.BackColor != item.Owner.BackColor) 656using var brush = item.BackColor.GetCachedSolidBrushScope(); 1113ControlPaint.DrawBackgroundImage(g, item.BackgroundImage, item.BackColor, item.BackgroundImageLayout, bounds, fillRect); 1573ControlPaint.DrawBackgroundImage(g, item.BackgroundImage, item.BackColor, item.BackgroundImageLayout, bounds, fillRect); 1586else if (item.Owner is not null && item.BackColor != item.Owner.BackColor) 1588using var brush = item.BackColor.GetCachedSolidBrushScope();
System\Windows\Forms\Controls\ToolStrips\ToolStripRenderer.cs (2)
868Color backgroundColor = e.Item.Selected ? SystemColors.Highlight : e.Item.BackColor; 872Image invertedImage = ControlPaint.CreateBitmapWithInvertedForeColor(bitmap, e.Item.BackColor);
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitButton.cs (1)
230_splitButtonButton.BackColor = BackColor;
System\Windows\Forms\Controls\ToolStrips\ToolStripSystemDarkModeRenderer.cs (4)
251backColor: GetDarkModeColor(e.Item.BackColor), 259if (e.Item.BackColor != Color.Transparent && e.Item.BackColor != Color.Empty) 262FillBackground(e.Graphics, bounds, e.Item.BackColor);
System\Windows\Forms\Controls\ToolStrips\ToolStripSystemRenderer.cs (14)
481ControlPaint.DrawBackgroundImage(g, item.BackgroundImage, item.BackColor, item.BackgroundImageLayout, item.ContentRectangle, item.ContentRectangle); 485FillBackground(g, item.ContentRectangle, item.BackColor); 526ControlPaint.DrawBackgroundImage(g, item.BackgroundImage, item.BackColor, item.BackgroundImageLayout, item.ContentRectangle, fillRect); 530FillBackground(g, fillRect, item.BackColor); 625ControlPaint.DrawBackgroundImage(g, splitButton.BackgroundImage, splitButton.BackColor, splitButton.BackgroundImageLayout, fillRect, fillRect); 661ControlPaint.DrawBackgroundImage(g, splitButton.BackgroundImage, splitButton.BackColor, splitButton.BackgroundImageLayout, bounds, fillRect); 666FillBackground(g, splitButtonButtonRect, splitButton.BackColor); 679FillBackground(g, dropDownRect, splitButton.BackColor); 734ControlPaint.DrawBackgroundImage(g, item.BackgroundImage, item.BackColor, item.BackgroundImageLayout, fillRect, fillRect); 739if ((parent is not null) && (state != ToolBarState.Checked) && (item.BackColor != parent.BackColor)) 741FillBackground(g, fillRect, item.BackColor); 856ControlPaint.DrawBackgroundImage(g, item.BackgroundImage, item.BackColor, item.BackgroundImageLayout, fillRect, fillRect); 862if (vsRenderer is null || (item.BackColor != SystemColors.Control)) 864FillBackground(g, fillRect, item.BackColor);