共用方式為


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 之間的整數值,對應至 usWeightClass OpenType 規格中的定義。

傳回

FontWeight 的新執行個體。

備註

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

適用於