1 write to HDC
System.Windows.Forms (1)
System\Windows\Forms\Rendering\ScreenDcCache.ScreenDcScope.cs (1)
23
HDC
= hdc;
10 references to HDC
System.Windows.Forms (10)
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (1)
822
textExtent = screen.
HDC
.GetTextExtent("0", hfont);
System\Windows\Forms\Controls\Labels\Label.cs (1)
1069
requiredSize = screen.
HDC
.GetTextExtent("0", hfont);
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.cs (1)
1196
textExtent = screen.
HDC
.GetTextExtent(DateTime.Now.ToShortDateString(), hfont);
System\Windows\Forms\Rendering\FontCache.Data.cs (1)
39
HDC hdc = screenDC.
HDC
;
System\Windows\Forms\Rendering\GdiCache.cs (2)
61
ArgumentValidation.ThrowIfNull(scope.
HDC
, "hdc");
63
OBJ_TYPE type = (OBJ_TYPE)PInvokeCore.GetObjectType(scope.
HDC
);
System\Windows\Forms\Rendering\GdiCache.ScreenGraphicsScope.cs (1)
26
Graphics = scope.
HDC
.CreateGraphics();
System\Windows\Forms\Rendering\ScreenDcCache.ScreenDcScope.cs (2)
26
public static implicit operator HDC(in ScreenDcScope scope) => scope.
HDC
;
30
_cache.Release(
HDC
);
System\Windows\Forms\Rendering\TextRenderer.cs (1)
523
return screen.
HDC
.MeasureText(text, hfont, proposedSize, flags);