17 references to new
System.Drawing.Common.Tests (1)
System\Drawing\Imaging\MetafileTests.cs (1)
1027using CreateBrushScope brush = new(Color.Green);
System.Windows.Forms (14)
System\Windows\Forms\Control.cs (2)
8203using CreateBrushScope hbrush = new(hdc.FindNearestColor(color)); 8257using CreateBrushScope hbrush = new(SystemColors.Control);
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.cs (1)
351using CreateBrushScope hbrush = new(color);
System\Windows\Forms\Controls\Buttons\ButtonInternal\CheckBoxBaseAdapter.cs (2)
71using CreateBrushScope hbrush = new(checkBackground); 111using CreateBrushScope hbrush = new(color);
System\Windows\Forms\Controls\Buttons\ButtonInternal\RadioButtonBaseAdapter.cs (2)
79using CreateBrushScope fieldBrush = new(field); 147using CreateBrushScope brush = new(checkColor);
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (1)
3455using var hbrush = new CreateBrushScope(ParentInternal?.BackColor ?? SystemColors.Control);
System\Windows\Forms\Controls\DataGridView\DataGridViewButtonCell.cs (2)
777using CreateBrushScope hbrush = new( 785using CreateBrushScope hbrush = new(SystemColors.ControlDark);
System\Windows\Forms\Controls\GroupBox\GroupBox.cs (1)
674using var hbrush = new CreateBrushScope(backColor);
System\Windows\Forms\Controls\ListBoxes\CheckedListBox.cs (1)
616using CreateBrushScope hbrush = new(backColor);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.cs (1)
1712using CreateBrushScope brush = new(backgroundColor);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (1)
2371using CreateBrushScope hbrush = new(color);
System.Windows.Forms.Primitives.Tests (2)
System\Windows\Forms\DeviceContextScopeTests.cs (2)
64using CreateBrushScope blueBrush = new(Color.Blue); 65using CreateBrushScope redBrush = new(Color.Red);