TextElement.Foreground Propiedad

Definición

Obtiene o establece el pincel que se va a aplicar al contenido de este elemento.

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>

Valor de propiedad

Pincel que se aplica al contenido de texto. El valor predeterminado es SolidColorBrush con el valor colorNegro.

Comentarios

Establecer primer plano no tiene ningún efecto visible para los objetos LineBreak o InlineUIContainer .

Se aplica a

Consulte también