14 instantiations of CreateBrushScope
System.Windows.Forms (14)
System\Windows\Forms\Control.cs (2)
8219
using CreateBrushScope hbrush =
new
(hdc.FindNearestColor(color));
8273
using CreateBrushScope hbrush =
new
(SystemColors.Control);
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.cs (1)
351
using CreateBrushScope hbrush =
new
(color);
System\Windows\Forms\Controls\Buttons\ButtonInternal\CheckBoxBaseAdapter.cs (2)
71
using CreateBrushScope hbrush =
new
(checkBackground);
111
using CreateBrushScope hbrush =
new
(color);
System\Windows\Forms\Controls\Buttons\ButtonInternal\RadioButtonBaseAdapter.cs (2)
79
using CreateBrushScope fieldBrush =
new
(field);
147
using CreateBrushScope brush =
new
(checkColor);
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (1)
3439
using var hbrush = new
CreateBrushScope
(ParentInternal?.BackColor ?? SystemColors.Control);
System\Windows\Forms\Controls\DataGridView\DataGridViewButtonCell.cs (2)
777
using CreateBrushScope hbrush =
new
(
785
using CreateBrushScope hbrush =
new
(SystemColors.ControlDark);
System\Windows\Forms\Controls\GroupBox\GroupBox.cs (1)
673
using var hbrush = new
CreateBrushScope
(backColor);
System\Windows\Forms\Controls\ListBoxes\CheckedListBox.cs (1)
618
using CreateBrushScope hbrush =
new
(backColor);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.cs (1)
1709
using CreateBrushScope brush =
new
(backgroundColor);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (1)
2394
using CreateBrushScope hbrush =
new
(color);
16 references to CreateBrushScope
System.Private.Windows.Core (2)
Windows\Win32\Graphics\Gdi\CreateBrushScope.cs (2)
38
public static implicit operator HBRUSH(in
CreateBrushScope
scope) => scope.HBRUSH;
39
public static implicit operator HGDIOBJ(in
CreateBrushScope
scope) => scope.HBRUSH;
System.Windows.Forms (14)
System\Windows\Forms\Control.cs (2)
8219
using
CreateBrushScope
hbrush = new(hdc.FindNearestColor(color));
8273
using
CreateBrushScope
hbrush = new(SystemColors.Control);
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.cs (1)
351
using
CreateBrushScope
hbrush = new(color);
System\Windows\Forms\Controls\Buttons\ButtonInternal\CheckBoxBaseAdapter.cs (2)
71
using
CreateBrushScope
hbrush = new(checkBackground);
111
using
CreateBrushScope
hbrush = new(color);
System\Windows\Forms\Controls\Buttons\ButtonInternal\RadioButtonBaseAdapter.cs (2)
79
using
CreateBrushScope
fieldBrush = new(field);
147
using
CreateBrushScope
brush = new(checkColor);
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (1)
3439
using
var
hbrush = new CreateBrushScope(ParentInternal?.BackColor ?? SystemColors.Control);
System\Windows\Forms\Controls\DataGridView\DataGridViewButtonCell.cs (2)
777
using
CreateBrushScope
hbrush = new(
785
using
CreateBrushScope
hbrush = new(SystemColors.ControlDark);
System\Windows\Forms\Controls\GroupBox\GroupBox.cs (1)
673
using
var
hbrush = new CreateBrushScope(backColor);
System\Windows\Forms\Controls\ListBoxes\CheckedListBox.cs (1)
618
using
CreateBrushScope
hbrush = new(backColor);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.cs (1)
1709
using
CreateBrushScope
brush = new(backgroundColor);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (1)
2394
using
CreateBrushScope
hbrush = new(color);