9 references to BackColor
System.Windows.Forms (5)
System\Windows\Forms\Controls\ListBoxes\CheckedListBox.cs (2)
581Color backColor = (SelectionMode != SelectionMode.None) ? e.BackColor : BackColor; 717Color backColor = (SelectionMode != SelectionMode.None) ? e.BackColor : BackColor;
System\Windows\Forms\Rendering\DrawItemEventArgs.cs (3)
121/// Fills the <see cref="Bounds"/> with the <see cref="BackColor"/>. 125using var backBrush = BackColor.GetCachedSolidBrushScope(); 137ControlPaint.DrawFocusRectangle(GraphicsInternal, Bounds, ForeColor, BackColor);
System.Windows.Forms.Design (2)
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (2)
995Brush selectedBrush = new SolidBrush(e.BackColor); 1018ControlPaint.DrawFocusRectangle(e.Graphics, focusRectangle, e.ForeColor, e.BackColor);
System.Windows.Forms.Tests (2)
System\Windows\Forms\DrawItemEventArgsTests.cs (2)
33Assert.Equal(expectedBackColor, e.BackColor); 59Assert.Equal((state & DrawItemState.Selected) == DrawItemState.Selected ? SystemColors.Highlight : backColor, e.BackColor);