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

OpenType 仕様の usWeightClass 定義に対応する 1 ~ 999 の整数値。

戻り値

FontWeight

FontWeight の新しいインスタンス。

注釈

OpenType 値の詳細については、OpenType usWeightClass 仕様の usWeightClass セクションを参照してください。

適用対象