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