Control.FontStretch 속성

정의

글꼴의 너비 값을 가져오거나 설정합니다.

public:
 property System::Windows::FontStretch FontStretch { System::Windows::FontStretch get(); void set(System::Windows::FontStretch value); };
[System.ComponentModel.Bindable(true)]
public System.Windows.FontStretch FontStretch { get; set; }
[<System.ComponentModel.Bindable(true)>]
member this.FontStretch : System.Windows.FontStretch with get, set
Public Property FontStretch As FontStretch

속성 값

FontStretch

FontStretch 값입니다. 기본값은 Normal입니다.

특성

예제

다음 예제에서는 컨트롤의 글꼴 stretch 속성을 설정 하는 방법을 보여 줍니다. 가능한 늘이기 값을 참조 하세요. FontStretches합니다.

<Button Name="btn10" FontStretch ="Condensed" 
        Click="ChangeFontStretch" TabIndex="3">
  FontStretch
</Button>
void ChangeFontStretch(object sender, RoutedEventArgs e)
{
    if (btn10.FontStretch == FontStretches.Condensed)
    {
        btn10.FontStretch = FontStretches.Normal;
        btn10.Content = "Control FontStretch changes from Condensed to Normal.";
    }
    else
    {
        btn10.FontStretch = FontStretches.Condensed;
        btn10.Content = "FontStretch";
    }
}
Private Sub ChangeFontStretch(ByVal Sender As Object, ByVal e As RoutedEventArgs)

    If (btn10.FontStretch = FontStretches.Condensed) Then

        btn10.FontStretch = FontStretches.Normal
        btn10.Content = "Control FontStretch changes from Condensed to Normal."
    Else
        btn10.Content = "FontStretch"
        btn10.FontStretch = FontStretches.Condensed
    End If

End Sub

설명

이 속성에만 해당 템플릿을 사용 하 여 컨트롤을 적용 합니다 FontStretch 매개 변수로 속성입니다. 다른 컨트롤에 대해이 속성이 아무런 영향이 없습니다.

종속성 속성 정보

식별자 필드 FontStretchProperty
메타 데이터 속성 설정 true AffectsMeasure, AffectsRender, Inherits

적용 대상