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 AffectsMeasureAffectsRenderInherits

適用対象

こちらもご覧ください