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.GetFontFromIFont

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

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

Parameters

font
the OLE IFont to convert

Return Value

the resulting System.Drawing.Font object

See Also

AxHost Class | AxHost Members | System.WinForms Namespace