8 references to ToHfont
System.Drawing.Common.Tests (5)
System\Drawing\FontTests.cs (5)
815IntPtr hfont = font.ToHfont(); 817Assert.NotEqual(hfont, font.ToHfont()); 828IntPtr hfont = font.ToHfont(); 830Assert.NotEqual(hfont, font.ToHfont()); 845AssertExtensions.Throws<ArgumentException>(null, () => font.ToHfont());
System.Windows.Forms (2)
System\Windows\Forms\Control.FontHandleWrapper.cs (1)
17internal FontHandleWrapper(Font font) => _handle = (HFONT)font.ToHfont();
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (1)
3699var hFont = (HFONT)Font.ToHfont();
System.Windows.Forms.Primitives (1)
System\Windows\Forms\SystemDrawingExtensions.cs (1)
14internal static HFONT ToHFONT(this Font font) => (HFONT)font.ToHfont();