NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

AxHost.GetIFontDispFromFont

Maps from a System.Drawing.Font object to an OLE IFontDisp

[Visual Basic]
Public Shared Function GetIFontDispFromFont( _
   ByVal font As Font _
) As IFontDisp
[C#]
public static IFontDisp GetIFontDispFromFont(
   Font font
);
[C++]
public: static IFontDisp* GetIFontDispFromFont(
   Font* font
);
[JScript]
public static function GetIFontDispFromFont(
   font : Font
) : IFontDisp;

Parameters

font
the System.Drawing.Font object to convert

Return Value

the resulting OLE IFontDisp

See Also

AxHost Class | AxHost Members | System.WinForms Namespace