52 references to DeleteObject
System.Drawing.Common (6)
System\Drawing\BufferedGraphicsContext.cs (1)
448PInvokeCore.DeleteObject(_dib);
System\Drawing\Icon.cs (4)
211PInvokeCore.DeleteObject(info.hbmColor); 226PInvokeCore.DeleteObject(info.hbmMask); 718PInvokeCore.DeleteObject(info.hbmColor); 723PInvokeCore.DeleteObject(info.hbmMask);
System\Drawing\Region.cs (1)
87PInvokeCore.DeleteObject((HRGN)regionHandle);
System.Private.Windows.Core (10)
System\Private\Windows\Ole\DragDropHelper.cs (1)
285PInvokeCore.DeleteObject(hbmpDragImage);
Windows\Win32\Graphics\Gdi\CreateBitmapScope.cs (1)
46PInvokeCore.DeleteObject(HBITMAP);
Windows\Win32\Graphics\Gdi\CreateBrushScope.cs (1)
48PInvokeCore.DeleteObject(HBRUSH);
Windows\Win32\Graphics\Gdi\CreatePenScope.cs (1)
41PInvokeCore.DeleteObject(HPEN);
Windows\Win32\Graphics\Gdi\HBITMAP.cs (1)
12PInvokeCore.DeleteObject(this);
Windows\Win32\Graphics\Gdi\ObjectScope.cs (1)
32PInvokeCore.DeleteObject(HGDIOBJ);
Windows\Win32\Graphics\Gdi\RegionScope.cs (2)
54PInvokeCore.DeleteObject(region); 88PInvokeCore.DeleteObject(Region);
Windows\Win32\UI\WindowsAndMessaging\ICONINFO.cs (2)
12PInvokeCore.DeleteObject((HGDIOBJ)hbmMask.Value); 18PInvokeCore.DeleteObject((HGDIOBJ)hbmColor.Value);
System.Windows.Forms (22)
System\Windows\Forms\Control.cs (3)
4785PInvokeCore.DeleteObject(backBrush); 6681PInvokeCore.DeleteObject(backBrush); 7545PInvokeCore.DeleteObject(backBrush);
System\Windows\Forms\Control.FontHandleWrapper.cs (1)
32PInvokeCore.DeleteObject(_handle);
System\Windows\Forms\Control.MetafileDCWrapper.cs (2)
67success = PInvokeCore.DeleteObject(_hBitmap); 214PInvokeCore.DeleteObject(hNullBitmap);
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (2)
5713PInvokeCore.DeleteObject(halftone); 5727PInvokeCore.DeleteObject(halftone);
System\Windows\Forms\Controls\ImageList\ImageList.cs (2)
386PInvokeCore.DeleteObject(hBitmap); 387PInvokeCore.DeleteObject(hMask);
System\Windows\Forms\Controls\ImageList\ImageList.ImageCollection.cs (2)
167PInvokeCore.DeleteObject((HGDIOBJ)hBitmap); 168PInvokeCore.DeleteObject((HGDIOBJ)hMask);
System\Windows\Forms\Controls\ToolStrips\CachedItemHdcInfo.cs (2)
40PInvokeCore.DeleteObject(oldBitmap); 56PInvokeCore.DeleteObject(_cachedItemBitmap);
System\Windows\Forms\Design\ComponentEditorForm.PageSelector.cs (2)
82PInvokeCore.DeleteObject(hbitmapTemp); 255PInvokeCore.DeleteObject(_hbrushDither);
System\Windows\Forms\Rendering\ControlPaint.cs (3)
219PInvokeCore.DeleteObject(palette); 247PInvokeCore.DeleteObject(previousBitmap); 257PInvokeCore.DeleteObject(hbitmap);
System\Windows\Forms\Rendering\FontCache.Data.cs (1)
56PInvokeCore.DeleteObject(HFONT);
System\Windows\Forms\Rendering\ScreenDcCache.cs (1)
104PInvokeCore.DeleteObject(hrgn);
System\Windows\Forms\VisualStyles\VisualStyleRenderer.cs (1)
470PInvokeCore.DeleteObject(hrgn);
System.Windows.Forms.Design (4)
System\Windows\Forms\Design\DesignerUtils.cs (4)
172PInvokeCore.DeleteObject(s_grabHandleFillBrushPrimary); 175PInvokeCore.DeleteObject(s_grabHandleFillBrush); 178PInvokeCore.DeleteObject(s_grabHandlePenPrimary); 181PInvokeCore.DeleteObject(s_grabHandlePen);
System.Windows.Forms.Primitives.Tests (1)
Interop\User32\LOGFONTWTests.cs (1)
39Assert.True(PInvokeCore.DeleteObject(handle));
System.Windows.Forms.Tests (9)
System\Windows\Forms\ComponentModel\Com2Interop\COM2PictureConverterTests.cs (1)
113PInvokeCore.DeleteObject((HGDIOBJ)hBitmap);
System\Windows\Forms\ControlPaintTests.cs (8)
49PInvokeCore.DeleteObject(hBitmap); 77PInvokeCore.DeleteObject(hBitmap); 120PInvokeCore.DeleteObject(hBitmap); 155PInvokeCore.DeleteObject(hBitmap); 160PInvokeCore.DeleteObject(monochromeMask); 188PInvokeCore.DeleteObject(hBitmap); 228PInvokeCore.DeleteObject(hBitmap); 256PInvokeCore.DeleteObject(hBitmap);