TextElement.Foreground Propriété

Définition

Obtient ou définit le pinceau à appliquer au contenu de cet élément.

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>

Valeur de propriété

Pinceau appliqué au contenu du texte. La valeur par défaut est un SolidColorBrush avec la valeur ColorBlack.

Remarques

La définition du premier plan n’a aucun effet visible pour les objets LineBreak ou InlineUIContainer .

S’applique à

Voir aussi