AccessText.Foreground 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定 , Brush 該元素會繪製該元素的文字內容。
public:
property System::Windows::Media::Brush ^ Foreground { System::Windows::Media::Brush ^ get(); void set(System::Windows::Media::Brush ^ value); };
public System.Windows.Media.Brush Foreground { get; set; }
member this.Foreground : System.Windows.Media.Brush with get, set
Public Property Foreground As Brush
屬性值
範例
以下範例說明如何設定屬性以改變控制項中 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 | 價值觀 |
|---|---|
| 識別碼欄位 | ForegroundProperty |
元資料屬性設為 true |
AffectsRender、SubPropertiesDoNotAffectRender、Inherits |