Share via


Support.FontChangeBold(Font, Boolean) Methode

Definition

Achtung

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

Ändert das Bold-Stilbit für eine Schriftart.

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

Parameter

CurrentFont
Font

Ein Font.

Bold
Boolean

true, um das Bold-Stilbit festzulegen, andernfalls false.

Gibt zurück

Ein Font, auf den das neue Format angewendet wurde.

Attribute

Hinweise

In Visual Basic 6.0 wurden Schriftschnitte angewendet, indem Sie Eigenschaften festlegen; in Visual Basic-Schriftart Stile angewendet werden, mithilfe einer FontStyle Enumeration. Diese Funktion wird durch die Aktualisierungstools verwendet, um die Visual Basic 6.0-Eigenschaften in die neuen Enumerationen zu übersetzen.

Hinweis

Funktionen und Objekte im Microsoft.VisualBasic.Compatibility.VB6-Namespace werden in den Tools zur Aktualisierung von Visual Basic 6.0 auf Visual Basic 2008 bereitgestellt. In den meisten Fällen duplizieren diese Funktionen und Objekte Funktionen, die Sie in anderen Namespaces von .NET Framework finden. Diese sind nur notwendig, wenn das Visual Basic 6.0-Codemodell sich maßgeblich von der .NET Framework-Implementierung unterscheidet.

Gilt für: