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 서체의 상대 가중치를 나타내는 값입니다.

예제

// 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

설명

가중치 차이는 일반적으로 동일한 서체의 "일반" 문자와 비교하여 서체에서 지정된 문자와 연결된 스트로크 또는 두께 증가로 구분됩니다.

참고 모든 서체에 모든 가중치를 사용할 수 있는 것은 아닙니다. 서체에 가중치를 사용할 수 없는 경우 가장 일치하는 가중치가 반환됩니다.

적용 대상