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

プロパティ値

使用するフォント スタイル。たとえば、標準、斜体、斜体などです。 既定値は、 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 AffectsMeasureAffectsRenderInherits

適用対象

こちらもご覧ください