TextElement.Foreground 屬性

定義

取得或設定要套用至這個專案中內容的 Brush

public:
 property Brush ^ Foreground { Brush ^ get(); void set(Brush ^ value); };
Brush Foreground();

void Foreground(Brush value);
public Brush Foreground { get; set; }
var brush = textElement.foreground;
textElement.foreground = brush;
Public Property Foreground As Brush
<textElementForeground="{StaticResource resourceName}"/>
- or -
<textElementForeground="colorString"/>
- or -
<textElement>
  <textElement.Foreground>singleBrush</textElement.Foreground>
</textElement>

屬性值

套用至文字內容的筆刷。 預設值為 SolidColorBrush其色彩 值為 Black

備註

設定 Foreground 對 LineBreakInlineUIContainer 物件沒有可見的效果。

適用於

另請參閱