FontWeight.FromOpenTypeWeight(Int32) Metoda

Definicja

Tworzy nowe wystąpienie FontWeight klasy odpowiadające wartości OpenType usWeightClass .

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

Parametry

weightValue
Int32

Wartość całkowita z zakresu od 1 do 999, która odpowiada definicji usWeightClass w specyfikacji OpenType.

Zwraca

FontWeight

Nowe wystąpienie elementu FontWeight.

Uwagi

Aby uzyskać więcej informacji na temat wartości OpenType usWeightClass , zobacz sekcję usWeightClass specyfikacji OpenType.

Dotyczy