136 references to IFont
System.Windows.Forms (16)
System\Windows\Forms\ActiveX\AxHost.cs (7)
3649IFont* ifont = GetIFontPointerFromFont(font); 3666private protected static IFont* GetIFontPointerFromFont(Font? font) 3682HRESULT hr = PInvoke.OleCreateFontIndirect(in fontDesc, in IID.GetRef<IFont>(), out void* lplpvObj); 3685return (IFont*)lplpvObj; 3703IFont.Interface oleFont = (IFont.Interface)font; 3753if (font is IFont.Interface ifont)
System\Windows\Forms\ActiveX\Control.ActiveXFontMarshaler.cs (2)
51in IID.GetRef<IFont>(), 60using var nativeFont = ComScope<IFont>.TryQueryFrom((IUnknown*)pObj, out HRESULT hr);
System\Windows\Forms\ActiveX\Control.ActiveXImpl.cs (1)
211using var font = ComScope<IFont>.TryQueryFrom(value.data.punkVal, out HRESULT hr);
System\Windows\Forms\ComponentModel\COM2Interop\COM2DataTypeToManagedDataTypeConverter.cs (2)
31/// properties of an <see cref="IFont"/> without actually changing the <see cref="IFont"/> instance.
System\Windows\Forms\ComponentModel\COM2Interop\COM2FontConverter.cs (3)
31using var iFont = ComScope<IFont>.TryQueryFrom((IUnknown*)nativeValue, out HRESULT hr); 86using var font = ComScope<IFont>.TryQueryFrom((IUnknown*)nativeValue, out HRESULT hr); 106private static void ApplyFontSettings(Font source, IFont* target, out bool targetChanged)
System\Windows\Forms\ComponentModel\COM2Interop\COM2PropertyDescriptor.cs (1)
114else if (guid.Equals(IID.GetRef<IFontDisp>()) || guid.Equals(IID.GetRef<IFont>()))
System.Windows.Forms.Primitives (120)
_generated\135\Windows.Win32.IFont.g.cs (117)
27 :winmdroot.IVTable<IFont,IFont.Vtbl>,IComIID { 44 return ((delegate *unmanaged [Stdcall]<IFont*,global::System.Guid* ,void** ,winmdroot.Foundation.HRESULT>)lpVtbl[0])((IFont*)Unsafe.AsPointer(ref this), riid, ppvObject); 49 return ((delegate *unmanaged [Stdcall]<IFont*,uint>)lpVtbl[1])((IFont*)Unsafe.AsPointer(ref this)); 54 return ((delegate *unmanaged [Stdcall]<IFont*,uint>)lpVtbl[2])((IFont*)Unsafe.AsPointer(ref this)); 60 private static winmdroot.Foundation.HRESULT get_Name(IFont* pThis, winmdroot.Foundation.BSTR* pName) 91 ((delegate *unmanaged [Stdcall]<IFont*,winmdroot.Foundation.BSTR* ,winmdroot.Foundation.HRESULT>)lpVtbl[3])((IFont*)Unsafe.AsPointer(ref this), &__result).ThrowOnFailure(); 96 ((delegate *unmanaged [Stdcall]<IFont*,winmdroot.Foundation.BSTR ,winmdroot.Foundation.HRESULT>)lpVtbl[4])((IFont*)Unsafe.AsPointer(ref this), value).ThrowOnFailure(); 103 private static winmdroot.Foundation.HRESULT put_Name(IFont* pThis, winmdroot.Foundation.BSTR name) 124 private static winmdroot.Foundation.HRESULT get_Size(IFont* pThis, winmdroot.System.Com.CY* pSize) 155 ((delegate *unmanaged [Stdcall]<IFont*,winmdroot.System.Com.CY* ,winmdroot.Foundation.HRESULT>)lpVtbl[5])((IFont*)Unsafe.AsPointer(ref this), &__result).ThrowOnFailure(); 160 ((delegate *unmanaged [Stdcall]<IFont*,winmdroot.System.Com.CY ,winmdroot.Foundation.HRESULT>)lpVtbl[6])((IFont*)Unsafe.AsPointer(ref this), value).ThrowOnFailure(); 167 private static winmdroot.Foundation.HRESULT put_Size(IFont* pThis, winmdroot.System.Com.CY size) 188 private static winmdroot.Foundation.HRESULT get_Bold(IFont* pThis, winmdroot.Foundation.BOOL* pBold) 219 ((delegate *unmanaged [Stdcall]<IFont*,winmdroot.Foundation.BOOL* ,winmdroot.Foundation.HRESULT>)lpVtbl[7])((IFont*)Unsafe.AsPointer(ref this), &__result).ThrowOnFailure(); 224 ((delegate *unmanaged [Stdcall]<IFont*,winmdroot.Foundation.BOOL ,winmdroot.Foundation.HRESULT>)lpVtbl[8])((IFont*)Unsafe.AsPointer(ref this), value).ThrowOnFailure(); 231 private static winmdroot.Foundation.HRESULT put_Bold(IFont* pThis, winmdroot.Foundation.BOOL bold) 252 private static winmdroot.Foundation.HRESULT get_Italic(IFont* pThis, winmdroot.Foundation.BOOL* pItalic) 283 ((delegate *unmanaged [Stdcall]<IFont*,winmdroot.Foundation.BOOL* ,winmdroot.Foundation.HRESULT>)lpVtbl[9])((IFont*)Unsafe.AsPointer(ref this), &__result).ThrowOnFailure(); 288 ((delegate *unmanaged [Stdcall]<IFont*,winmdroot.Foundation.BOOL ,winmdroot.Foundation.HRESULT>)lpVtbl[10])((IFont*)Unsafe.AsPointer(ref this), value).ThrowOnFailure(); 295 private static winmdroot.Foundation.HRESULT put_Italic(IFont* pThis, winmdroot.Foundation.BOOL italic) 316 private static winmdroot.Foundation.HRESULT get_Underline(IFont* pThis, winmdroot.Foundation.BOOL* pUnderline) 347 ((delegate *unmanaged [Stdcall]<IFont*,winmdroot.Foundation.BOOL* ,winmdroot.Foundation.HRESULT>)lpVtbl[11])((IFont*)Unsafe.AsPointer(ref this), &__result).ThrowOnFailure(); 352 ((delegate *unmanaged [Stdcall]<IFont*,winmdroot.Foundation.BOOL ,winmdroot.Foundation.HRESULT>)lpVtbl[12])((IFont*)Unsafe.AsPointer(ref this), value).ThrowOnFailure(); 359 private static winmdroot.Foundation.HRESULT put_Underline(IFont* pThis, winmdroot.Foundation.BOOL underline) 380 private static winmdroot.Foundation.HRESULT get_Strikethrough(IFont* pThis, winmdroot.Foundation.BOOL* pStrikethrough) 411 ((delegate *unmanaged [Stdcall]<IFont*,winmdroot.Foundation.BOOL* ,winmdroot.Foundation.HRESULT>)lpVtbl[13])((IFont*)Unsafe.AsPointer(ref this), &__result).ThrowOnFailure(); 416 ((delegate *unmanaged [Stdcall]<IFont*,winmdroot.Foundation.BOOL ,winmdroot.Foundation.HRESULT>)lpVtbl[14])((IFont*)Unsafe.AsPointer(ref this), value).ThrowOnFailure(); 423 private static winmdroot.Foundation.HRESULT put_Strikethrough(IFont* pThis, winmdroot.Foundation.BOOL strikethrough) 444 private static winmdroot.Foundation.HRESULT get_Weight(IFont* pThis, short* pWeight) 475 ((delegate *unmanaged [Stdcall]<IFont*,short* ,winmdroot.Foundation.HRESULT>)lpVtbl[15])((IFont*)Unsafe.AsPointer(ref this), &__result).ThrowOnFailure(); 480 ((delegate *unmanaged [Stdcall]<IFont*,short ,winmdroot.Foundation.HRESULT>)lpVtbl[16])((IFont*)Unsafe.AsPointer(ref this), value).ThrowOnFailure(); 487 private static winmdroot.Foundation.HRESULT put_Weight(IFont* pThis, short weight) 508 private static winmdroot.Foundation.HRESULT get_Charset(IFont* pThis, short* pCharset) 539 ((delegate *unmanaged [Stdcall]<IFont*,short* ,winmdroot.Foundation.HRESULT>)lpVtbl[17])((IFont*)Unsafe.AsPointer(ref this), &__result).ThrowOnFailure(); 544 ((delegate *unmanaged [Stdcall]<IFont*,short ,winmdroot.Foundation.HRESULT>)lpVtbl[18])((IFont*)Unsafe.AsPointer(ref this), value).ThrowOnFailure(); 551 private static winmdroot.Foundation.HRESULT put_Charset(IFont* pThis, short charset) 572 private static winmdroot.Foundation.HRESULT get_hFont(IFont* pThis, winmdroot.Graphics.Gdi.HFONT* phFont) 604 ((delegate *unmanaged [Stdcall]<IFont*,winmdroot.Graphics.Gdi.HFONT* ,winmdroot.Foundation.HRESULT>)lpVtbl[19])((IFont*)Unsafe.AsPointer(ref this), &__result).ThrowOnFailure(); 612 private static winmdroot.Foundation.HRESULT Clone(IFont* pThis, winmdroot.System.Ole.IFont** ppFont) 642 public unsafe void Clone(winmdroot.System.Ole.IFont** ppFont) 644 ((delegate *unmanaged [Stdcall]<IFont*,winmdroot.System.Ole.IFont** ,winmdroot.Foundation.HRESULT>)lpVtbl[20])((IFont*)Unsafe.AsPointer(ref this), ppFont).ThrowOnFailure(); 650 private static winmdroot.Foundation.HRESULT IsEqual(IFont* pThis, winmdroot.System.Ole.IFont* pFontOther) 676 public unsafe void IsEqual(winmdroot.System.Ole.IFont* pFontOther) 678 ((delegate *unmanaged [Stdcall]<IFont*,winmdroot.System.Ole.IFont* ,winmdroot.Foundation.HRESULT>)lpVtbl[21])((IFont*)Unsafe.AsPointer(ref this), pFontOther).ThrowOnFailure(); 684 private static winmdroot.Foundation.HRESULT SetRatio(IFont* pThis, int cyLogical, int cyHimetric) 710 ((delegate *unmanaged [Stdcall]<IFont*,int ,int ,winmdroot.Foundation.HRESULT>)lpVtbl[22])((IFont*)Unsafe.AsPointer(ref this), cyLogical, cyHimetric).ThrowOnFailure(); 726 private static winmdroot.Foundation.HRESULT QueryTextMetrics(IFont* pThis, winmdroot.Graphics.Gdi.TEXTMETRICW* pTM) 758 ((delegate *unmanaged [Stdcall]<IFont*,winmdroot.Graphics.Gdi.TEXTMETRICW* ,winmdroot.Foundation.HRESULT>)lpVtbl[23])((IFont*)Unsafe.AsPointer(ref this), pTM).ThrowOnFailure(); 764 private static winmdroot.Foundation.HRESULT AddRefHfont(IFont* pThis, winmdroot.Graphics.Gdi.HFONT hFont) 792 ((delegate *unmanaged [Stdcall]<IFont*,winmdroot.Graphics.Gdi.HFONT ,winmdroot.Foundation.HRESULT>)lpVtbl[24])((IFont*)Unsafe.AsPointer(ref this), hFont).ThrowOnFailure(); 798 private static winmdroot.Foundation.HRESULT ReleaseHfont(IFont* pThis, winmdroot.Graphics.Gdi.HFONT hFont) 829 ((delegate *unmanaged [Stdcall]<IFont*,winmdroot.Graphics.Gdi.HFONT ,winmdroot.Foundation.HRESULT>)lpVtbl[25])((IFont*)Unsafe.AsPointer(ref this), hFont).ThrowOnFailure(); 835 private static winmdroot.Foundation.HRESULT SetHdc(IFont* pThis, winmdroot.Graphics.Gdi.HDC hDC) 864 ((delegate *unmanaged [Stdcall]<IFont*,winmdroot.Graphics.Gdi.HDC ,winmdroot.Foundation.HRESULT>)lpVtbl[26])((IFont*)Unsafe.AsPointer(ref this), hDC).ThrowOnFailure(); 890 internal delegate *unmanaged [Stdcall]<IFont*,global::System.Guid* ,void** ,winmdroot.Foundation.HRESULT> QueryInterface_1; 892 internal delegate *unmanaged [Stdcall]<IFont*,uint> AddRef_2; 894 internal delegate *unmanaged [Stdcall]<IFont*,uint> Release_3; 896 internal delegate *unmanaged [Stdcall]<IFont*,winmdroot.Foundation.BSTR* ,winmdroot.Foundation.HRESULT> get_Name_4; 898 internal delegate *unmanaged [Stdcall]<IFont*,winmdroot.Foundation.BSTR ,winmdroot.Foundation.HRESULT> put_Name_5; 900 internal delegate *unmanaged [Stdcall]<IFont*,winmdroot.System.Com.CY* ,winmdroot.Foundation.HRESULT> get_Size_6; 902 internal delegate *unmanaged [Stdcall]<IFont*,winmdroot.System.Com.CY ,winmdroot.Foundation.HRESULT> put_Size_7; 904 internal delegate *unmanaged [Stdcall]<IFont*,winmdroot.Foundation.BOOL* ,winmdroot.Foundation.HRESULT> get_Bold_8; 906 internal delegate *unmanaged [Stdcall]<IFont*,winmdroot.Foundation.BOOL ,winmdroot.Foundation.HRESULT> put_Bold_9; 908 internal delegate *unmanaged [Stdcall]<IFont*,winmdroot.Foundation.BOOL* ,winmdroot.Foundation.HRESULT> get_Italic_10; 910 internal delegate *unmanaged [Stdcall]<IFont*,winmdroot.Foundation.BOOL ,winmdroot.Foundation.HRESULT> put_Italic_11; 912 internal delegate *unmanaged [Stdcall]<IFont*,winmdroot.Foundation.BOOL* ,winmdroot.Foundation.HRESULT> get_Underline_12; 914 internal delegate *unmanaged [Stdcall]<IFont*,winmdroot.Foundation.BOOL ,winmdroot.Foundation.HRESULT> put_Underline_13; 916 internal delegate *unmanaged [Stdcall]<IFont*,winmdroot.Foundation.BOOL* ,winmdroot.Foundation.HRESULT> get_Strikethrough_14; 918 internal delegate *unmanaged [Stdcall]<IFont*,winmdroot.Foundation.BOOL ,winmdroot.Foundation.HRESULT> put_Strikethrough_15; 920 internal delegate *unmanaged [Stdcall]<IFont*,short* ,winmdroot.Foundation.HRESULT> get_Weight_16; 922 internal delegate *unmanaged [Stdcall]<IFont*,short ,winmdroot.Foundation.HRESULT> put_Weight_17; 924 internal delegate *unmanaged [Stdcall]<IFont*,short* ,winmdroot.Foundation.HRESULT> get_Charset_18; 926 internal delegate *unmanaged [Stdcall]<IFont*,short ,winmdroot.Foundation.HRESULT> put_Charset_19; 928 internal delegate *unmanaged [Stdcall]<IFont*,winmdroot.Graphics.Gdi.HFONT* ,winmdroot.Foundation.HRESULT> get_hFont_20; 930 internal delegate *unmanaged [Stdcall]<IFont*,winmdroot.System.Ole.IFont** ,winmdroot.Foundation.HRESULT> Clone_21; 932 internal delegate *unmanaged [Stdcall]<IFont*,winmdroot.System.Ole.IFont* ,winmdroot.Foundation.HRESULT> IsEqual_22; 934 internal delegate *unmanaged [Stdcall]<IFont*,int ,int ,winmdroot.Foundation.HRESULT> SetRatio_23; 936 internal delegate *unmanaged [Stdcall]<IFont*,winmdroot.Graphics.Gdi.TEXTMETRICW* ,winmdroot.Foundation.HRESULT> QueryTextMetrics_24; 938 internal delegate *unmanaged [Stdcall]<IFont*,winmdroot.Graphics.Gdi.HFONT ,winmdroot.Foundation.HRESULT> AddRefHfont_25; 940 internal delegate *unmanaged [Stdcall]<IFont*,winmdroot.Graphics.Gdi.HFONT ,winmdroot.Foundation.HRESULT> ReleaseHfont_26; 942 internal delegate *unmanaged [Stdcall]<IFont*,winmdroot.Graphics.Gdi.HDC ,winmdroot.Foundation.HRESULT> SetHdc_27; 1045 unsafe winmdroot.Foundation.HRESULT Clone(winmdroot.System.Ole.IFont** ppFont); 1048 unsafe winmdroot.Foundation.HRESULT IsEqual(winmdroot.System.Ole.IFont* pFontOther);
_generated\434\Windows.Win32.QACONTAINER.g.cs (1)
51 internal unsafe winmdroot.System.Ole.IFont* pFont;
_generated\493\Windows.Win32.System_Ole_IFont_Extensions.g.cs (2)
23 /// <inheritdoc cref="winmdroot.System.Ole.IFont.Interface.QueryTextMetrics(winmdroot.Graphics.Gdi.TEXTMETRICW*)"/> 24 internal static unsafe winmdroot.Foundation.HRESULT QueryTextMetrics(this winmdroot.System.Ole.IFont.Interface @this, out winmdroot.Graphics.Gdi.TEXTMETRICW pTM)