FontWeight.FromOpenTypeWeight(Int32) Metodo

Definizione

Crea una nuova istanza di FontWeight che corrisponde al valore usWeightClassOpenTypeOpenType.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

Parametri

weightValue
Int32

Valore intero compreso tra 1 e 999 che corrisponde alla definizione usWeightClass nella specifica OpenTypeOpenType.An integer value between 1 and 999 that corresponds to the usWeightClass definition in the OpenTypeOpenType specification.

Restituisce

FontWeight

Nuova istanza di FontWeight.A new instance of FontWeight.

Commenti

Per ulteriori informazioni sul valore OpenType usWeightClass , vedere la sezione usWeightClass della specifica OpenType.For more information about the OpenType usWeightClass value, see the usWeightClass section of the OpenType specification.

Si applica a