Support.FontChangeUnderline(Font, Boolean) 方法

定義

警告

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

改變 Underline 字型的樣式部分。

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

參數

CurrentFont
Font

Font

Underline
Boolean

true 設定 Underline 樣式部分;否則 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 實作有顯著差異時,才需要使用這些工具。

適用於