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