共用方式為


Support.IFontToFont(Object) 方法

定義

警告

Microsoft.VisualBasic.Compatibility.* classes are obsolete and supported within 32 bit processes only. http://go.microsoft.com/fwlink/?linkid=160862

將 Visual Basic 6.0 stdFont 物件轉換為 Font

public:
 static System::Drawing::Font ^ IFontToFont(System::Object ^ objFnt);
public static System.Drawing.Font IFontToFont (object objFnt);
[System.Obsolete("Microsoft.VisualBasic.Compatibility.* classes are obsolete and supported within 32 bit processes only. http://go.microsoft.com/fwlink/?linkid=160862")]
public static System.Drawing.Font IFontToFont (object objFnt);
static member IFontToFont : obj -> System.Drawing.Font
[<System.Obsolete("Microsoft.VisualBasic.Compatibility.* classes are obsolete and supported within 32 bit processes only. http://go.microsoft.com/fwlink/?linkid=160862")>]
static member IFontToFont : obj -> System.Drawing.Font
Public Function IFontToFont (objFnt As Object) As Font

參數

objFnt
Object

Object,包含 Visual Basic 6.0 stdFont

傳回

指定要轉換的物件。

屬性

備註

Visual Basic 6.0stdFont物件是以 COM 為基礎,並在 Visual Basic 中已沒有對等項目。 升級工具會使用此函式之間轉換FontstdFont專案升級期間。

注意

Microsoft.VisualBasic.Compatibility.VB6 命名空間中的函式和物件都是供這些工具使用,以便從 Visual Basic 6.0 升級至 Visual Basic 2008。 在大多數情況下,這些函式和物件會複製在 .NET Framework 其他命名空間中可以找到的功能。 只有當 Visual Basic 6.0 程式碼模型與 .NET Framework 實作有顯著差異時,才會需要這些函式和物件。

適用於