43 references to IsNull
System.Drawing.Common (5)
System\Drawing\BufferedGraphicsContext.cs (3)
354if (hdc.IsNull) 424if (!_oldBitmap.IsNull && !_compatDC.IsNull) 430if (!_compatDC.IsNull)
System\Drawing\Graphics.cs (2)
177if (!_nativeHdc.IsNull) 2764if (!targetDC.IsNull)
System.Private.Windows.Core (14)
System\ArgumentValidation.cs (1)
49if (argument.IsNull)
Windows\Win32\Graphics\Gdi\BeginPaintScope.cs (1)
39if (!HDC.IsNull)
Windows\Win32\Graphics\Gdi\CreateDcScope.cs (2)
57public bool IsNull => HDC.IsNull; 61if (!HDC.IsNull)
Windows\Win32\Graphics\Gdi\GetDcScope.cs (2)
57public bool IsNull => HDC.IsNull; 64if (!HDC.IsNull)
Windows\Win32\Graphics\Gdi\HdcHandle.cs (1)
31if (!Handle.IsNull)
Windows\Win32\Graphics\Gdi\SelectObjectScope.cs (1)
47if (!_hdc.IsNull)
Windows\Win32\Graphics\Gdi\SetBackgroundColorScope.cs (1)
35if (!_hdc.IsNull)
Windows\Win32\Graphics\Gdi\SetBkModeScope.cs (1)
38if (!_hdc.IsNull)
Windows\Win32\Graphics\Gdi\SetMapModeScope.cs (1)
39if (!_hdc.IsNull)
Windows\Win32\Graphics\Gdi\SetRop2Scope.cs (1)
38if (!_hdc.IsNull)
Windows\Win32\Graphics\Gdi\SetTextAlignmentScope.cs (1)
39if (!_hdc.IsNull)
Windows\Win32\Graphics\Gdi\SetTextColorScope.cs (1)
39if (!_hdc.IsNull)
System.Private.Windows.GdiPlus (3)
Windows\Win32\Graphics\Gdi\DeviceContextHdcScope.cs (3)
132if (HDC.IsNull) 146HDC = HDC.IsNull ? DeviceContext.GetHdc() : HDC; 165if (HDC.IsNull)
System.Windows.Forms (17)
System\Windows\Forms\Control.cs (3)
11279if (dc.IsNull) 11841bool usingBeginPaint = dc.IsNull; 11952if (hdc.IsNull)
System\Windows\Forms\Control.MetafileDCWrapper.cs (2)
55if (HDC.IsNull || _hMetafileDC.IsNull || _hBitmap.IsNull)
System\Windows\Forms\Controls\Buttons\ButtonInternal\RadioButtonBaseAdapter.cs (2)
99Debug.Assert(!hdc.IsNull, "Calling DrawAndFillEllipse with null wg"); 100if (hdc.IsNull)
System\Windows\Forms\Controls\ToolStrips\CachedItemHdcInfo.cs (2)
27if (_cachedItemHDC.IsNull) 52if (!_cachedItemHDC.IsNull)
System\Windows\Forms\Rendering\DCMapping.cs (2)
31if (hdc.IsNull) 109if (!_hdc.IsNull)
System\Windows\Forms\Rendering\DrawingEventArgs.cs (3)
99Debug.Assert(!_hdc.IsNull); 133if (_graphics is not null && !_hdc.IsNull) 139if (!_oldPalette.IsNull && !_hdc.IsNull)
System\Windows\Forms\Rendering\PaintEventArgs.cs (1)
50_event = hdc.IsNull
System\Windows\Forms\Rendering\TextRenderer.cs (1)
331if (hdc.IsNull)
System\Windows\Forms\Screen.cs (1)
80if (hdc.IsNull)
System.Windows.Forms.Primitives.TestUtilities (3)
Metafiles\EmfScope.cs (3)
48if (metafileHdc.IsNull) 65if (HDC.IsNull) 251if (!HDC.IsNull)
System.Windows.Forms.Tests (1)
System\Windows\Forms\ScreenDcCacheTests.cs (1)
22Assert.False(screen.HDC.IsNull);