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