123 references to GetCachedSolidBrushScope
System.Windows.Forms (119)
System\Windows\Forms\Control.cs (1)
8954
using var brush = color.
GetCachedSolidBrushScope
();
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.cs (4)
391
using var brush = color.
GetCachedSolidBrushScope
();
534
using var highlightBrush = colors.Highlight.
GetCachedSolidBrushScope
();
539
using var shadowBrush = colors.ButtonShadow.
GetCachedSolidBrushScope
();
544
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)
34
using var back = backColor.
GetCachedSolidBrushScope
();
System\Windows\Forms\Controls\Buttons\ButtonInternal\DarkMode\ModernButtonDarkModeRenderer.cs (4)
106
using var borderBrush = borderColor.
GetCachedSolidBrushScope
();
117
using var brush = backColor.
GetCachedSolidBrushScope
();
151
using (var gapBrush = gapColor.
GetCachedSolidBrushScope
())
161
using var ringBrush = ringColor.
GetCachedSolidBrushScope
();
System\Windows\Forms\Controls\Buttons\ButtonInternal\DarkMode\ModernFlatButtonRenderer.cs (1)
49
using (var brush = backColor.
GetCachedSolidBrushScope
())
System\Windows\Forms\Controls\Buttons\ButtonInternal\DarkMode\PopupButtonDarkModeRenderer.cs (1)
43
using (var brush = backColor.
GetCachedSolidBrushScope
())
System\Windows\Forms\Controls\Buttons\ButtonInternal\DarkMode\SystemButtonDarkModeRenderer.cs (2)
50
using var brush = backColor.
GetCachedSolidBrushScope
();
78
using var focusBrush = focusColor.
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\ComboBox\ComboBox.ModernComboAdapter.cs (3)
132
using var brush = background.
GetCachedSolidBrushScope
();
223
using (var brush = buttonColor.
GetCachedSolidBrushScope
())
291
using (var backgroundBrush = background.
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)
3150
using var dividerWidthBrush = dividerWidthColor.
GetCachedSolidBrushScope
();
3185
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)
501
using var textBrush = ForeColor.
GetCachedSolidBrushScope
();
711
using var brush = backColor.
GetCachedSolidBrushScope
();
System\Windows\Forms\Controls\GroupBox\GroupBox.Modern.cs (4)
225
using var surfaceBrush = surfaceColor.
GetCachedSolidBrushScope
();
347
using (var bodyBrush = bodyColor.
GetCachedSolidBrushScope
())
364
using var headerBrush = headerColor.
GetCachedSolidBrushScope
();
654
using var brush = color.
GetCachedSolidBrushScope
();
System\Windows\Forms\Controls\Labels\Label.cs (1)
1283
using var brush = color.
GetCachedSolidBrushScope
();
System\Windows\Forms\Controls\Labels\LinkLabel.cs (3)
1020
using var foreBrush = ForeColor.
GetCachedSolidBrushScope
();
1021
using var linkBrush = LinkColor.
GetCachedSolidBrushScope
();
1302
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)
2937
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\TextBox\TextBoxBase.cs (3)
2671
using var clientBackgroundBrush = clientBackColor.
GetCachedSolidBrushScope
();
2672
using var adornerBrush = adornerColor.
GetCachedSolidBrushScope
();
2724
using var parentBackgroundBrush = parentBackColor.
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)
3055
using var brush = BackColor.
GetCachedSolidBrushScope
();
System\Windows\Forms\Controls\UpDown\UpDownBase.cs (1)
1092
using var clientBackgroundBrush = clientBackColor.
GetCachedSolidBrushScope
();
System\Windows\Forms\Controls\UpDown\UpDownBase.UpDownButtons.cs (1)
343
using var gapBrush = _parent.BackColor.
GetCachedSolidBrushScope
();
System\Windows\Forms\Layout\Containers\SplitContainer.cs (2)
1030
using var brush = BackColor.
GetCachedSolidBrushScope
();
1563
using var solidBrush = BackColor.
GetCachedSolidBrushScope
();
System\Windows\Forms\ParentBackgroundRenderer.cs (1)
31
using var fallbackBrush = fallbackColor.
GetCachedSolidBrushScope
();
System\Windows\Forms\Printing\PrintPreviewControl.cs (3)
352
using var backBrush = backColor.
GetCachedSolidBrushScope
();
607
using var brush = brushColor.
GetCachedSolidBrushScope
();
693
using (var brush = ForeColor.
GetCachedSolidBrushScope
())
System\Windows\Forms\Rendering\CheckBox\AnimatedCheckGlyphRenderer.cs (1)
137
using (var brush = backColor.
GetCachedSolidBrushScope
())
System\Windows\Forms\Rendering\CheckBox\AnimatedToggleSwitchRenderer.cs (2)
232
using var backgroundBrush = backgroundColor.
GetCachedSolidBrushScope
();
233
using var circleBrush = circleColor.
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\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\DrawItemEventArgs.cs (1)
125
using var backBrush = BackColor.
GetCachedSolidBrushScope
();
System\Windows\Forms\Rendering\RadioButton\AnimatedRadioGlyphRenderer.cs (2)
145
using (var brush = activeBackColor.
GetCachedSolidBrushScope
())
171
using var dotBrush = dotColor.
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)
69
using var brushText = e.ForeColor.
GetCachedSolidBrushScope
();