17 references to new
System.Drawing.Common.Tests (1)
System\Drawing\Imaging\MetafileTests.cs (1)
1027
using CreateBrushScope brush =
new
(Color.Green);
System.Windows.Forms (14)
System\Windows\Forms\Control.cs (2)
8203
using CreateBrushScope hbrush =
new
(hdc.FindNearestColor(color));
8257
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)
3455
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)
674
using var hbrush = new
CreateBrushScope
(backColor);
System\Windows\Forms\Controls\ListBoxes\CheckedListBox.cs (1)
616
using CreateBrushScope hbrush =
new
(backColor);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.cs (1)
1712
using CreateBrushScope brush =
new
(backgroundColor);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (1)
2371
using CreateBrushScope hbrush =
new
(color);
System.Windows.Forms.Primitives.Tests (2)
System\Windows\Forms\DeviceContextScopeTests.cs (2)
64
using CreateBrushScope blueBrush =
new
(Color.Blue);
65
using CreateBrushScope redBrush =
new
(Color.Red);