FontWeight.FromOpenTypeWeight(Int32) Methode

Definition

Erstellt eine neue Instanz von FontWeight, die dem OpenTypeOpenType usWeightClass-Wert entspricht.Creates a new instance of FontWeight that corresponds to the OpenTypeOpenType usWeightClass value.

public:
 static System::Windows::FontWeight FromOpenTypeWeight(int weightValue);
public static System.Windows.FontWeight FromOpenTypeWeight (int weightValue);
static member FromOpenTypeWeight : int -> System.Windows.FontWeight
Public Shared Function FromOpenTypeWeight (weightValue As Integer) As FontWeight

Parameter

weightValue
Int32

Ein Ganzzahlwert von 1 bis 999, der der usWeightClass-Definition in der OpenTypeOpenType-Spezifikation entspricht.An integer value between 1 and 999 that corresponds to the usWeightClass definition in the OpenTypeOpenType specification.

Gibt zurück

Eine neue Instanz von FontWeight.A new instance of FontWeight.

Hinweise

Weitere Informationen zum OpenType usWeightClass -Wert finden Sie im Abschnitt "Abschnitt" der OpenType-Spezifikation.For more information about the OpenType usWeightClass value, see the usWeightClass section of the OpenType specification.

Gilt für: