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