25 references to IFont
System.Windows.Forms (25)
winforms\Managed\System\WinForms\AxHost.cs (6)
130
private static Guid ifont_Guid = typeof(UnsafeNativeMethods.
IFont
).GUID;
4928
return (UnsafeNativeMethods.
IFont
)UnsafeNativeMethods.OleCreateIFontIndirect(GetFONTDESCFromFont(font), ref ifont_Guid);
4945
UnsafeNativeMethods.
IFont
oleFont = (UnsafeNativeMethods.
IFont
)font;
4987
UnsafeNativeMethods.
IFont
ifont = font as UnsafeNativeMethods.
IFont
;
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2FontConverter.cs (4)
53
UnsafeNativeMethods.
IFont
nativeFont = nativeValue as UnsafeNativeMethods.
IFont
;
114
UnsafeNativeMethods.
IFont
nativeFont = (UnsafeNativeMethods.
IFont
)pd.GetNativeValue(pd.TargetObject);
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2PropertyDescriptor.cs (1)
159
oleConverters[typeof(UnsafeNativeMethods.
IFont
).GUID] = typeof(Com2FontConverter);
winforms\Managed\System\WinForms\Control.cs (8)
16377
UnsafeNativeMethods.
IFont
ifont = (UnsafeNativeMethods.
IFont
)obj;
17634
UnsafeNativeMethods.
IFont
ifont = (UnsafeNativeMethods.
IFont
)objfont;
18969
Guid iid = typeof(UnsafeNativeMethods.
IFont
).GUID;
18971
UnsafeNativeMethods.
IFont
oleFont = UnsafeNativeMethods.OleCreateFontIndirect(fontDesc, ref iid);
18987
UnsafeNativeMethods.
IFont
nativeFont = (UnsafeNativeMethods.
IFont
)Marshal.GetObjectForIUnknown(pObj);
winforms\Managed\System\WinForms\ControlPaint.cs (1)
2035
internal static bool FontToIFont(Font source, UnsafeNativeMethods.
IFont
target) {
winforms\Managed\System\WinForms\UnsafeNativeMethods.cs (4)
346
public static extern UnsafeNativeMethods.
IFont
OleCreateIFontIndirect(NativeMethods.FONTDESC fd, ref Guid iid);
359
public static extern UnsafeNativeMethods.
IFont
OleCreateFontIndirect(NativeMethods.tagFONTDESC fontdesc, [In]ref Guid refiid);
8008
out UnsafeNativeMethods.
IFont
ppfont);
8013
UnsafeNativeMethods.
IFont
pfontOther);
winforms\Managed\System\WinForms\WebBrowserHelper.cs (1)
90
private static Guid ifont_Guid = typeof(UnsafeNativeMethods.
IFont
).GUID;