Support.FontChangeBold(Font, Boolean) 方法

定義

警告

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

改變 Bold 字型的樣式部分。

public:
 static System::Drawing::Font ^ FontChangeBold(System::Drawing::Font ^ CurrentFont, bool Bold);
public static System.Drawing.Font FontChangeBold(System.Drawing.Font CurrentFont, bool Bold);
[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 FontChangeBold(System.Drawing.Font CurrentFont, bool Bold);
static member FontChangeBold : System.Drawing.Font * bool -> 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 FontChangeBold : System.Drawing.Font * bool -> System.Drawing.Font
Public Function FontChangeBold (CurrentFont As Font, Bold As Boolean) As Font

參數

CurrentFont
Font

Font

Bold
Boolean

true 設定 Bold 樣式部分;否則 false

傳回

Font A,並採用了新風格。

屬性

備註

在 Visual Basic 6.0 中,字型樣式是透過設定屬性來套用;Visual Basic 版則是透過使用 FontStyle 枚舉來套用字型樣式。 升級工具會用此函式將 Visual Basic 6.0 屬性轉換成新的枚舉。

Note

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

適用於