FontWeight.FromOpenTypeWeight(Int32) 方法

定義

建立對應至 OpenType usWeightClass值的新實例 FontWeight

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

參數

weightValue
Int32

介於 1 到 999 之間的整數值,對應至 OpenType 規格中的 usWeightClass 定義。

傳回

FontWeight

FontWeight 的新執行個體。

備註

如需 OpenType 值的詳細資訊,請參閱 OpenType usWeightClass 規格的 usWeightClass 一節。

適用於