語言

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>

備註

相依財產資訊

Item 價值觀
識別碼欄位 FontWeightProperty
元資料屬性設為 true AffectsMeasure、AffectsRender、Inherits

適用於

另請參閱