AccessText.FontStyle 속성

정의

AccessText 요소에 사용할 글꼴 스타일을 가져오거나 설정합니다.

public:
 property System::Windows::FontStyle FontStyle { System::Windows::FontStyle get(); void set(System::Windows::FontStyle value); };
public System.Windows.FontStyle FontStyle { get; set; }
member this.FontStyle : System.Windows.FontStyle with get, set
Public Property FontStyle As FontStyle

속성 값

FontStyle

사용할 글꼴 스타일(예: 보통, 기울임꼴 또는 오블리크)입니다. 기본값은 MessageFontStyle 메트릭에 따라 결정됩니다.

예제

다음 예제에서는 텍스트의 모양을 변경 하려면 속성을 설정 하는 방법을 보여 줍니다는 AccessText 제어 합니다.

<TextBox Name="textBox2" Width="50" Height="30"/>
<Label Target="{Binding ElementName=textBox2}">
  <AccessText Background="Red" Foreground="DarkSlateBlue"    
              FontFamily="Arial Narrow" FontSize="16" FontStyle="Italic" 
              FontWeight="Bold">
    E_dit
  </AccessText>
</Label>

설명

자세한 내용 및 글꼴 스타일의 목록을 참조 하세요. FontStyle합니다.

종속성 속성 정보

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

적용 대상

추가 정보