TextElement.Foreground Properti

Definisi

Mendapatkan atau mengatur Brush untuk diterapkan ke konten dalam elemen ini.

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>

Nilai Properti

Kuas yang diterapkan pada konten teks. Defaultnya adalah SolidColorBrush dengan nilai WarnaHitam.

Keterangan

Pengaturan Latar Depan tidak memiliki efek yang terlihat untuk objek LineBreak atau InlineUIContainer .

Berlaku untuk

Lihat juga