10 references to FromHfont
System.Drawing.Common.Tests (3)
System\Drawing\FontTests.cs (3)
483
AssertExtensions.Throws<ArgumentException>(null, () => Font.
FromHfont
(IntPtr.Zero));
819
Font newFont = Font.
FromHfont
(hfont);
832
Font newFont = Font.
FromHfont
(hfont);
System.Windows.Forms (7)
System\Windows\Forms\ActiveX\AxHost.cs (1)
3709
Font f = Font.
FromHfont
(oleFont.hFont);
System\Windows\Forms\ActiveX\Control.ActiveXFontMarshaler.cs (1)
61
return hr.Failed ? DefaultFont : Font.
FromHfont
(nativeFont.Value->hFont);
System\Windows\Forms\ActiveX\Control.ActiveXImpl.cs (2)
216
property.Value = Font.
FromHfont
(font.Value->hFont);
1376
prop.Value = Font.
FromHfont
(pQaContainer->pFont->hFont);
System\Windows\Forms\ComponentModel\COM2Interop\COM2FontConverter.cs (1)
53
using Font font = Font.
FromHfont
(_lastHandle);
System\Windows\Forms\Controls\ListView\ListView.cs (1)
6388
return Font.
FromHfont
(hFont);
System\Windows\Forms\ToolTip\ToolTip.cs (1)
2331
font = Font.
FromHfont
(PInvokeCore.SendMessage(this, PInvokeCore.WM_GETFONT));