Typeface.Weight 속성

정의

서체의 상대적 두께를 가져옵니다.

public:
 property System::Windows::FontWeight Weight { System::Windows::FontWeight get(); };
public System.Windows.FontWeight Weight { get; }
member this.Weight : System.Windows.FontWeight
Public ReadOnly Property Weight As FontWeight

속성 값

FontWeight

서체의 상대적 두께를 나타내는 FontWeight 값입니다.

예제

// Get the font weight value for the typeface.
FontWeight fontWeight = typeface.Weight;

if (fontWeight == FontWeights.ExtraBold)
{
    // Perform action based on extra bold weight value.
}
' Get the font weight value for the typeface.
Dim fontWeight As FontWeight = typeface.Weight

If fontWeight = FontWeights.ExtraBold Then
    ' Perform action based on extra bold weight value.
End If

설명

일반적으로 스트로크 나 두께 지정 된 문자를 동일한 서체의 "normal" 문자를 비교 하 여 서체로 연관 하 여 가중치를 차별화 합니다.

참고 일부 가중치 모든 서체에 대 한 사용할 수 있습니다. 가중치 서체에 사용할 수 없는 경우 가장 가까운 일치 하는 가중치 반환 됩니다.

적용 대상