97 references to GetCachedSolidBrushScope
System.Windows.Forms (93)
System\Windows\Forms\Control.cs (1)
8209using 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 = GetBackgroundColor(state, isDefault).GetCachedSolidBrushScope();
System\Windows\Forms\Controls\Buttons\ButtonInternal\DarkMode\PopupButtonDarkModeRenderer.cs (1)
55using var brush = backColor.GetCachedSolidBrushScope();
System\Windows\Forms\Controls\Buttons\ButtonInternal\DarkMode\SystemButtonDarkModeRenderer.cs (1)
44using 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)
5672using var brush = SystemColors.HotTrack.GetCachedSolidBrushScope(); 19226using var brush = BackgroundColor.GetCachedSolidBrushScope(); 19270using 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)
473using var textBrush = ForeColor.GetCachedSolidBrushScope(); 669using var brush = backColor.GetCachedSolidBrushScope();
System\Windows\Forms\Controls\Labels\Label.cs (1)
1285using 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)
622using var brush = backColor.GetCachedSolidBrushScope(); 681using var brush = foreColor.GetCachedSolidBrushScope(); 740using 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)
2891using var backgroundBrush = BackColor.GetCachedSolidBrushScope();
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.cs (7)
1536using var backBrush = backColor.GetCachedSolidBrushScope(); 1559using var stripeBrush = ownerGrid.LineColor.GetCachedSolidBrushScope(); 1564using var focusBrush = ownerGrid.SelectedItemWithFocusBackColor.GetCachedSolidBrushScope(); 1593using var textBrush = textColor.GetCachedSolidBrushScope(); 1673using var brush = textColor.GetCachedSolidBrushScope(); 1744using var brush = BackgroundColor.GetCachedSolidBrushScope(); 1832using var backBrush = backColor.GetCachedSolidBrushScope();
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (2)
2365using var brush = color.GetCachedSolidBrushScope(); 3367using 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)
302Color.Silver.GetCachedSolidBrushScope() : ColorTable.ButtonSelectedBorder.GetCachedSolidBrushScope(); 523using var gripLightBrush = ColorTable.GripLight.GetCachedSolidBrushScope(); 531using var controlTextBrush = SystemColors.ControlText.GetCachedSolidBrushScope(); 606using var brush = item.BackColor.GetCachedSolidBrushScope(); 657using var brush = item.BackColor.GetCachedSolidBrushScope(); 931using (var brush = overflowBottomLeftShadow.GetCachedSolidBrushScope()) 937using (var brush = overflowTopShadow.GetCachedSolidBrushScope()) 987using (var brush = middleColor.GetCachedSolidBrushScope()) 1058using var brush = fill.GetCachedSolidBrushScope(); 1133using var brush = beginColor.GetCachedSolidBrushScope(); 1185using var brush = ColorTable.ToolStripDropDownBackground.GetCachedSolidBrushScope(); 1205using var brush = ColorTable.ToolStripDropDownBackground.GetCachedSolidBrushScope(); 1294using (var brush = overflowTopShadow.GetCachedSolidBrushScope()) 1317using (var brush = overflowButtonGradientBegin.GetCachedSolidBrushScope()) 1351using (var brush = ColorTable.ToolStripGradientMiddle.GetCachedSolidBrushScope()) 1385using (var brush = ColorTable.ToolStripGradientEnd.GetCachedSolidBrushScope()) 1423using var brush = ColorTable.ButtonSelectedHighlight.GetCachedSolidBrushScope(); 1447using var brush = ColorTable.ButtonCheckedHighlight.GetCachedSolidBrushScope(); 1558using var brush = ColorTable.ButtonPressedHighlight.GetCachedSolidBrushScope(); 1589using var brush = item.BackColor.GetCachedSolidBrushScope();
System\Windows\Forms\Controls\ToolStrips\ToolStripRenderer.cs (1)
695using 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)
113using var backBrush = backColor.GetCachedSolidBrushScope(); 646using 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)
2852using 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)
222using var brush = background.GetCachedSolidBrushScope(); 456using (var brush = backColor.GetCachedSolidBrushScope()) 1959using var lightBrush = LightLight(color).GetCachedSolidBrushScope(); 1963using var darkBrush = Dark(color).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();