次の方法で共有


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 仕様の定義に対応する 1 ~ usWeightClass 999 の整数値。

戻り値

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

注釈

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

適用対象