19 references to GetCachedBrush
System.Windows.Forms (19)
winforms\Managed\System\WinForms\DataGridViewButtonCell.cs (2)
719
SolidBrush backBrush = this.DataGridView.
GetCachedBrush
((DataGridViewCell.PaintSelectionBackground(paintParts) && cellSelected) ? cellStyle.SelectionBackColor : cellStyle.BackColor);
720
SolidBrush foreBrush = this.DataGridView.
GetCachedBrush
(cellSelected ? cellStyle.SelectionForeColor : cellStyle.ForeColor);
winforms\Managed\System\WinForms\DataGridViewCell.cs (2)
3592
graphics.FillRectangle(this.DataGridView.
GetCachedBrush
(dividerWidthColor),
3630
graphics.FillRectangle(this.DataGridView.
GetCachedBrush
(dividerHeightColor), bounds.X, bounds.Bottom - dividerThickness, bounds.Width, dividerThickness);
winforms\Managed\System\WinForms\DataGridViewCheckBoxCell.cs (3)
1217
SolidBrush br = this.DataGridView.
GetCachedBrush
((DataGridViewCell.PaintSelectionBackground(paintParts) && cellSelected) ? cellStyle.SelectionBackColor : cellStyle.BackColor);
1371
foreBrush = this.DataGridView.
GetCachedBrush
(cellSelected ? cellStyle.SelectionForeColor : cellStyle.ForeColor);
1372
backBrush = this.DataGridView.
GetCachedBrush
((DataGridViewCell.PaintSelectionBackground(paintParts) && cellSelected) ? cellStyle.SelectionBackColor : cellStyle.BackColor);
winforms\Managed\System\WinForms\DataGridViewColumnHeaderCell.cs (1)
893
br = this.DataGridView.
GetCachedBrush
((DataGridViewCell.PaintSelectionBackground(paintParts) && cellSelected) || IsHighlighted() ?
winforms\Managed\System\WinForms\DataGridViewComboBoxCell.cs (3)
2162
br = this.DataGridView.
GetCachedBrush
(cellStyle.SelectionBackColor);
2166
br = this.DataGridView.
GetCachedBrush
(cellStyle.BackColor);
2304
br = this.DataGridView.
GetCachedBrush
(cellStyle.BackColor);
winforms\Managed\System\WinForms\DataGridViewHeaderCell.cs (1)
656
SolidBrush br = this.DataGridView.
GetCachedBrush
((DataGridViewCell.PaintSelectionBackground(paintParts) && cellSelected) ? cellStyle.SelectionBackColor : cellStyle.BackColor);
winforms\Managed\System\WinForms\DataGridViewImageCell.cs (1)
841
SolidBrush br = this.DataGridView.
GetCachedBrush
((DataGridViewCell.PaintSelectionBackground(paintParts) && cellSelected) ? cellStyle.SelectionBackColor : cellStyle.BackColor);
winforms\Managed\System\WinForms\DataGridViewLinkCell.cs (1)
1019
SolidBrush br = this.DataGridView.
GetCachedBrush
((DataGridViewCell.PaintSelectionBackground(paintParts) && cellSelected) ? cellStyle.SelectionBackColor : cellStyle.BackColor);
winforms\Managed\System\WinForms\DataGridViewMethods.cs (1)
5733
g.FillRectangle(
GetCachedBrush
(SystemColors.HotTrack), rectInsertionBar);
winforms\Managed\System\WinForms\DataGridViewRowHeaderCell.cs (1)
866
SolidBrush br = this.DataGridView.
GetCachedBrush
((DataGridViewCell.PaintSelectionBackground(paintParts) && cellSelected) ? cellStyle.SelectionBackColor : cellStyle.BackColor);
winforms\Managed\System\WinForms\DataGridViewTextBoxCell.cs (2)
710
br = this.DataGridView.
GetCachedBrush
(cellStyle.SelectionBackColor);
714
br = this.DataGridView.
GetCachedBrush
(cellStyle.BackColor);
winforms\Managed\System\WinForms\DataGridViewTopLeftHeaderCell.cs (1)
305
SolidBrush br = this.DataGridView.
GetCachedBrush
((DataGridViewCell.PaintSelectionBackground(paintParts) && cellSelected) ? cellStyle.SelectionBackColor : cellStyle.BackColor);