99 references to GetCachedSolidBrushScope
System.Windows.Forms (95)
System\Windows\Forms\Control.cs (1)
8228using var brush = color.GetCachedSolidBrushScope();
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.cs (4)
341using var brush = color.GetCachedSolidBrushScope(); 474using var highlightBrush = colors.Highlight.GetCachedSolidBrushScope(); 479using var shadowBrush = colors.ButtonShadow.GetCachedSolidBrushScope(); 484using var brush = color.GetCachedSolidBrushScope();
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonStandardAdapter.cs (1)
77using var brush = color.GetCachedSolidBrushScope();
System\Windows\Forms\Controls\Buttons\ButtonInternal\DarkMode\FlatButtonDarkModeRenderer.cs (1)
29using var back = backColor.GetCachedSolidBrushScope();
System\Windows\Forms\Controls\Buttons\ButtonInternal\DarkMode\PopupButtonDarkModeRenderer.cs (1)
52using var brush = backColor.GetCachedSolidBrushScope();
System\Windows\Forms\Controls\Buttons\ButtonInternal\DarkMode\SystemButtonDarkModeRenderer.cs (1)
41using var brush = backColor.GetCachedSolidBrushScope();
System\Windows\Forms\Controls\Buttons\ButtonInternal\RadioButtonBaseAdapter.cs (1)
40using var fieldBrush = field.GetCachedSolidBrushScope();
System\Windows\Forms\Controls\ComboBox\ComboBox.FlatComboAdapter.cs (1)
85using var b = innerBorderColor.GetCachedSolidBrushScope();
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (3)
5669using var brush = SystemColors.HotTrack.GetCachedSolidBrushScope(); 19223using var brush = BackgroundColor.GetCachedSolidBrushScope(); 19267using var brush = BackgroundColor.GetCachedSolidBrushScope();
System\Windows\Forms\Controls\DataGridView\DataGridViewButtonCell.cs (1)
689using var backBrush = backBrushColor.GetCachedSolidBrushScope();
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (2)
3161using var dividerWidthBrush = dividerWidthColor.GetCachedSolidBrushScope(); 3196using var dividerHeightColorBrush = dividerHeightColor.GetCachedSolidBrushScope();
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxCell.cs (2)
1124using var brush = brushColor.GetCachedSolidBrushScope(); 1337using var highBrush = highlight.GetCachedSolidBrushScope();
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnHeaderCell.cs (1)
872using var brush = brushColor.GetCachedSolidBrushScope();
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (1)
1927using var brush = paint && !brushColor.HasTransparency() ? brushColor.GetCachedSolidBrushScope() : default;
System\Windows\Forms\Controls\DataGridView\DataGridViewHeaderCell.cs (1)
549using var brush = backColor.GetCachedSolidBrushScope();
System\Windows\Forms\Controls\DataGridView\DataGridViewImageCell.cs (1)
780using var brush = paint ? brushColor.GetCachedSolidBrushScope() : default;
System\Windows\Forms\Controls\DataGridView\DataGridViewLinkCell.cs (1)
916using var brush = brushColor.GetCachedSolidBrushScope();
System\Windows\Forms\Controls\DataGridView\DataGridViewRowHeaderCell.cs (1)
741using var brush = brushColor.GetCachedSolidBrushScope();
System\Windows\Forms\Controls\DataGridView\DataGridViewTextBoxCell.cs (1)
689using var brush = brushColor.GetCachedSolidBrushScope();
System\Windows\Forms\Controls\DataGridView\DataGridViewTopLeftHeaderCell.cs (1)
270using var brush = brushColor.GetCachedSolidBrushScope();
System\Windows\Forms\Controls\GroupBox\GroupBox.cs (2)
472using var textBrush = ForeColor.GetCachedSolidBrushScope(); 668using var brush = backColor.GetCachedSolidBrushScope();
System\Windows\Forms\Controls\Labels\Label.cs (1)
1283using var brush = color.GetCachedSolidBrushScope();
System\Windows\Forms\Controls\Labels\LinkLabel.cs (3)
1010using var foreBrush = ForeColor.GetCachedSolidBrushScope(); 1011using var linkBrush = LinkColor.GetCachedSolidBrushScope(); 1292using var useBrush = brushColor.GetCachedSolidBrushScope();
System\Windows\Forms\Controls\ListBoxes\CheckedListBox.cs (3)
624using var brush = backColor.GetCachedSolidBrushScope(); 683using var brush = foreColor.GetCachedSolidBrushScope(); 742using var brush = backColor.GetCachedSolidBrushScope();
System\Windows\Forms\Controls\ListView\DrawListViewColumnHeaderEventArgs.cs (1)
95using (var backBrush = BackColor.GetCachedSolidBrushScope())
System\Windows\Forms\Controls\ListView\DrawListViewItemEventArgs.cs (1)
65using var backBrush = Item.BackColor.GetCachedSolidBrushScope();
System\Windows\Forms\Controls\ListView\DrawListViewSubItemEventArgs.cs (1)
97using var backBrush = backColor.GetCachedSolidBrushScope();
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (1)
2893using var backgroundBrush = BackColor.GetCachedSolidBrushScope();
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.cs (7)
1533using var backBrush = backColor.GetCachedSolidBrushScope(); 1556using var stripeBrush = ownerGrid.LineColor.GetCachedSolidBrushScope(); 1561using var focusBrush = ownerGrid.SelectedItemWithFocusBackColor.GetCachedSolidBrushScope(); 1590using var textBrush = textColor.GetCachedSolidBrushScope(); 1670using var brush = textColor.GetCachedSolidBrushScope(); 1741using var brush = BackgroundColor.GetCachedSolidBrushScope(); 1829using var backBrush = backColor.GetCachedSolidBrushScope();
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (2)
2388using var brush = color.GetCachedSolidBrushScope(); 3390using var backBrush = BackColor.GetCachedSolidBrushScope();
System\Windows\Forms\Controls\ToolStrips\ToolStripComboBox.ToolStripComboBoxControl.ToolStripComboBoxFlatComboAdapter.cs (1)
102using var b = colorTable.ComboBoxButtonOnOverflow.GetCachedSolidBrushScope();
System\Windows\Forms\Controls\ToolStrips\ToolstripProfessionalRenderer.cs (21)
301Color.Silver.GetCachedSolidBrushScope() : ColorTable.ButtonSelectedBorder.GetCachedSolidBrushScope(); 522using var gripLightBrush = ColorTable.GripLight.GetCachedSolidBrushScope(); 530using var controlTextBrush = SystemColors.ControlText.GetCachedSolidBrushScope(); 605using var brush = item.BackColor.GetCachedSolidBrushScope(); 656using var brush = item.BackColor.GetCachedSolidBrushScope(); 930using (var brush = overflowBottomLeftShadow.GetCachedSolidBrushScope()) 936using (var brush = overflowTopShadow.GetCachedSolidBrushScope()) 986using (var brush = middleColor.GetCachedSolidBrushScope()) 1057using var brush = fill.GetCachedSolidBrushScope(); 1132using var brush = beginColor.GetCachedSolidBrushScope(); 1184using var brush = ColorTable.ToolStripDropDownBackground.GetCachedSolidBrushScope(); 1204using var brush = ColorTable.ToolStripDropDownBackground.GetCachedSolidBrushScope(); 1293using (var brush = overflowTopShadow.GetCachedSolidBrushScope()) 1316using (var brush = overflowButtonGradientBegin.GetCachedSolidBrushScope()) 1350using (var brush = ColorTable.ToolStripGradientMiddle.GetCachedSolidBrushScope()) 1384using (var brush = ColorTable.ToolStripGradientEnd.GetCachedSolidBrushScope()) 1422using var brush = ColorTable.ButtonSelectedHighlight.GetCachedSolidBrushScope(); 1446using var brush = ColorTable.ButtonCheckedHighlight.GetCachedSolidBrushScope(); 1557using var brush = ColorTable.ButtonPressedHighlight.GetCachedSolidBrushScope(); 1588using var brush = item.BackColor.GetCachedSolidBrushScope();
System\Windows\Forms\Controls\ToolStrips\ToolStripRenderer.cs (1)
693using var brush = arrowColor.GetCachedSolidBrushScope();
System\Windows\Forms\Controls\ToolStrips\ToolStripSystemDarkModeRenderer.cs (6)
75GetDarkModeColor(color).GetCachedSolidBrushScope(); 435? GetDarkModeColor(SystemColors.ControlDark).GetCachedSolidBrushScope() 436: GetDarkModeColor(SystemColors.Highlight).GetCachedSolidBrushScope(); 473.GetCachedSolidBrushScope(); 521using var darkColorBrush = GetDarkModeColor(SystemColors.ControlDark).GetCachedSolidBrushScope(); 522using var lightColorBrush = GetDarkModeColor(SystemColors.ControlLight).GetCachedSolidBrushScope();
System\Windows\Forms\Controls\ToolStrips\ToolStripSystemRenderer.cs (2)
111using var backBrush = backColor.GetCachedSolidBrushScope(); 644using var brush = SystemColors.Highlight.GetCachedSolidBrushScope();
System\Windows\Forms\Controls\ToolStrips\ToolStripTextBox.ToolStripTextBoxControl.cs (1)
257using var brush = innerBorderColor.GetCachedSolidBrushScope();
System\Windows\Forms\Controls\TreeView\TreeView.cs (1)
2839using var brush = BackColor.GetCachedSolidBrushScope();
System\Windows\Forms\Layout\Containers\SplitContainer.cs (2)
1030using var brush = BackColor.GetCachedSolidBrushScope(); 1561using var solidBrush = BackColor.GetCachedSolidBrushScope();
System\Windows\Forms\Printing\PrintPreviewControl.cs (3)
346using var backBrush = backColor.GetCachedSolidBrushScope(); 601using var brush = brushColor.GetCachedSolidBrushScope(); 687using (var brush = ForeColor.GetCachedSolidBrushScope())
System\Windows\Forms\Rendering\ControlPaint.cs (4)
250using var brush = background.GetCachedSolidBrushScope(); 491using (var brush = backColor.GetCachedSolidBrushScope()) 2023using var lightBrush = LightLight(color).GetCachedSolidBrushScope(); 2027using var darkBrush = Dark(color).GetCachedSolidBrushScope();
System\Windows\Forms\Rendering\ControlPaint_ModernControlButtonRenderer.cs (2)
96using (var backgroundBrush = backgroundColor.GetCachedSolidBrushScope()) 168using var contentBrush = contentColor.GetCachedSolidBrushScope();
System\Windows\Forms\Rendering\DrawItemEventArgs.cs (1)
125using var backBrush = BackColor.GetCachedSolidBrushScope();
System\Windows\Forms\ToolTip\DrawToolTipEventArgs.cs (1)
74using var backBrush = _backColor.GetCachedSolidBrushScope();
System.Windows.Forms.Design (4)
System\Drawing\Design\ColorEditor.ColorPalette.cs (2)
360using var brush = BackColor.GetCachedSolidBrushScope(); 416using var brush = color.GetCachedSolidBrushScope();
System\Drawing\Design\ColorEditor.cs (1)
51using var brush = color.GetCachedSolidBrushScope();
System\Drawing\Design\CursorEditor.CursorUI.cs (1)
66using var brushText = e.ForeColor.GetCachedSolidBrushScope();