1 write to HDC
System.Windows.Forms (1)
System\Windows\Forms\Rendering\ScreenDcCache.ScreenDcScope.cs (1)
23
HDC
= hdc;
14 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)
1197
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);
System.Windows.Forms.Tests (4)
System\Windows\Forms\ScreenDcCacheTests.cs (1)
22
Assert.False(screen.
HDC
.IsNull);
Text\FontMetrics.cs (3)
69
Size extent = screen.
HDC
.GetTextExtent("Whizzo Butter", hfont);
87
Size measure = screen.
HDC
.MeasureText("Windows Foundation Classes", hfont, proposedSize, (TextFormatFlags)dt);
147
Rectangle result = screen.
HDC
.AdjustForVerticalAlignment(