37 references to new
System.Drawing.Common.Tests (3)
System\Drawing\ImageTests.cs (1)
675
using SelectObjectScope penScope =
new
(hdc, pen);
System\Drawing\Imaging\MetafileTests.cs (2)
1028
using SelectObjectScope penScope =
new
(hdc, pen);
1029
using SelectObjectScope brushScope =
new
(hdc, brush);
System.Windows.Forms (17)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.cs (1)
1710
using SelectObjectScope targetBitmapSelection =
new
(compatibleDC, compatibleBitmap);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (1)
3712
using SelectObjectScope fontSelection =
new
(hdc, hFont);
System\Windows\Forms\Controls\Splitter\Splitter.cs (1)
702
using SelectObjectScope selection =
new
(dc, halftone);
System\Windows\Forms\Design\ComponentEditorForm.PageSelector.cs (1)
102
using SelectObjectScope fontSelection =
new
(
System\Windows\Forms\Layout\Containers\ContainerControl.cs (1)
720
using SelectObjectScope fontSelection =
new
(dc, fontHandle);
System\Windows\Forms\Layout\Containers\SplitContainer.cs (1)
1477
using SelectObjectScope selectBrush =
new
(dc, halftone);
System\Windows\Forms\Rendering\ControlPaint.cs (7)
310
using SelectObjectScope sourceBitmapSelection =
new
(sourceDC, (HGDIOBJ)monochromeMask);
311
using SelectObjectScope targetBitmapSelection =
new
(targetDC, (HGDIOBJ)colorMask.Value);
1810
using SelectObjectScope brushSelection =
new
(desktopDC, PInvokeCore.GetStockObject(GET_STOCK_OBJECT_FLAGS.NULL_BRUSH));
1811
using SelectObjectScope penSelection =
new
(desktopDC, pen);
1831
using SelectObjectScope brushSelection =
new
(desktopDC, PInvokeCore.GetStockObject(GET_STOCK_OBJECT_FLAGS.NULL_BRUSH));
1832
using SelectObjectScope penSelection =
new
(desktopDC, pen);
2046
using SelectObjectScope brushSelection =
new
(desktopDC, brush);
System\Windows\Forms\Rendering\FontCache.Data.cs (1)
40
using SelectObjectScope fontSelection =
new
(hdc, HFONT);
System\Windows\Forms\Rendering\TextExtensions.cs (3)
70
using SelectObjectScope fontSelection =
new
(hdc, (HFONT)font);
246
using SelectObjectScope fontSelection =
new
(hdc, font.Object);
290
using SelectObjectScope selectFont =
new
(hdc, hfont);
System.Windows.Forms.Design (11)
System\ComponentModel\Design\DesignerActionPanel.EditorPropertyLine.cs (1)
83
using SelectObjectScope fontSelection =
new
(hdc, hFont);
System\ComponentModel\Design\MultilineStringEditor.MultilineStringEditorUI.cs (1)
182
using SelectObjectScope fontSelection =
new
(hdc, font);
System\Windows\Forms\Design\DesignerUtils.cs (7)
251
using SelectObjectScope brushSelection =
new
(hDC, isPrimary ? s_grabHandleFillBrushPrimary : s_grabHandleFillBrush);
252
using SelectObjectScope penSelection =
new
(hDC, isPrimary ? s_grabHandlePenPrimary : s_grabHandlePen);
266
using SelectObjectScope brushSelection =
new
(hDC, isPrimary ? s_grabHandleFillBrushPrimary : s_grabHandleFillBrush);
267
using SelectObjectScope penSelection =
new
(hDC, s_grabHandlePenPrimary);
280
using SelectObjectScope penSelection =
new
(hDC, s_grabHandlePenPrimary);
283
using SelectObjectScope brushSelection =
new
(hDC, s_grabHandleFillBrushPrimary);
532
using SelectObjectScope hFontOld =
new
(dc, hFont);
System\Windows\Forms\Design\OleDragDropHandler.cs (2)
441
using SelectObjectScope brushSelection =
new
(dc, PInvokeCore.GetStockObject(GET_STOCK_OBJECT_FLAGS.NULL_BRUSH));
442
using SelectObjectScope penSelection =
new
(dc, pen);
System.Windows.Forms.Primitives (5)
System\Windows\Forms\DeviceContextExtensions.cs (5)
33
using SelectObjectScope penScope =
new
(hdc, hpen);
35
using SelectObjectScope brushScope =
new
(hdc, PInvokeCore.GetStockObject(GET_STOCK_OBJECT_FLAGS.NULL_BRUSH));
86
using SelectObjectScope selection =
new
(hdc, (HGDIOBJ)hpen.Value);
143
using var penSelection = pen.IsNull ? default : new
SelectObjectScope
(hdc, (HGDIOBJ)pen.Value);
144
using var brushSelection = brush.IsNull ? default : new
SelectObjectScope
(hdc, (HGDIOBJ)brush.Value);
System.Windows.Forms.Tests (1)
Text\FontMetrics.cs (1)
144
using SelectObjectScope fontSelection =
new
(screen, hfont.Object);