Bagikan melalui


Support.FontChangeUnderline(Font, Boolean) Metode

Definisi

Perhatian

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

Mengubah Underline bit gaya untuk font.

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

Parameter

CurrentFont
Font

Font.

Underline
Boolean

true untuk mengatur Underline bit gaya; jika tidak false.

Mengembalikan

A Font dengan gaya baru diterapkan.

Atribut

Keterangan

Di Visual Basic 6.0, gaya font diterapkan dengan mengatur properti; dalam gaya font Visual Basic diterapkan dengan menggunakan FontStyle enumerasi. Fungsi ini digunakan oleh alat peningkatan untuk menerjemahkan properti Visual Basic 6.0 ke enumerasi baru.

Catatan

Fungsi dan objek di Microsoft.VisualBasic.Compatibility.VB6 namespace disediakan untuk digunakan oleh alat untuk meningkatkan dari Visual Basic 6.0 ke Visual Basic 2008. Dalam kebanyakan kasus, fungsi dan objek ini menduplikasi fungsionalitas yang dapat Anda temukan di namespace lain di .NET Framework. Mereka hanya diperlukan ketika model kode Visual Basic 6.0 berbeda secara signifikan dari implementasi .NET Framework.

Berlaku untuk