Sdílet prostřednictvím


FontWeight.FromOpenTypeWeight(Int32) Metoda

Definice

Vytvoří novou instanci FontWeight , která odpovídá hodnotě 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

Celočíselná hodnota mezi 1 a 999, která odpovídá definici usWeightClass ve specifikaci OpenType.

Návraty

FontWeight

Nová instance .FontWeight

Poznámky

Další informace o hodnotě OpenType najdete v části usWeightClass specifikace OpenTypeusWeightClass.

Platí pro