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