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 Formatvorlagenbit 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 zum Festlegen des Bold Formatvorlagenbits; andernfalls false.

Gibt zurück

A Font mit der angewendeten neuen Formatvorlage.

Attribute

Hinweise

In Visual Basic 6.0 wurden Schriftarten durch Festlegen von Eigenschaften angewendet. In Visual Basic Schriftartformatvorlagen werden mithilfe einer FontStyle-Enumeration angewendet. Diese Funktion wird von den Upgradetools verwendet, um die Visual Basic 6.0-Eigenschaften in die neuen Enumerationen zu übersetzen.

Note

Funktionen und Objekte im namespace Microsoft.VisualBasic.Compatibility.VB6 werden von den Tools zum Upgrade von Visual Basic 6.0 auf Visual Basic 2008 bereitgestellt. In den meisten Fällen haben diese Funktionen und Objekte doppelte Funktionen, die Sie in anderen Namespaces im .NET Framework finden können. Sie sind nur erforderlich, wenn sich das Visual Basic 6.0-Codemodell erheblich von der .NET Framework-Implementierung unterscheidet.

Gilt für: