AccessText.Foreground Propriedade

Definição

Obtém ou define o Brush que desenha o conteúdo do texto do elemento.

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

Valor de Propriedade

O que Brush desenha o texto. A predefinição é Black.

Exemplos

O exemplo seguinte mostra como definir propriedades para alterar a aparência do texto num AccessText controlo.

<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>

Observações

Informação de Propriedade de Dependência

Iteme Value
Campo identificador ForegroundProperty
Propriedades dos metadados definidas como true AffectsRender, SubPropertiesDoNotAffectRender, Inherits

Aplica-se a

Ver também