AccessText.FontWeight プロパティ

定義

AccessText 要素と共に使用するフォントの太さを取得または設定します。

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

プロパティ値

使用するフォントの太さ。 既定値は、MessageFontWeight メトリックにより決定されます。

次の例は、コントロール内のテキストの外観を変更するプロパティを設定する方法を 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>

注釈

依存プロパティ情報

識別子フィールド FontWeightProperty
に設定されたメタデータ プロパティ true AffectsMeasure, AffectsRender, Inherits

適用対象

こちらもご覧ください