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