AccessText.Foreground Eigenschap

Definitie

Hiermee haalt u de Brush tekstinhoud van het element op of stelt u deze in.

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

Waarde van eigenschap

Hiermee Brush tekent u de tekst. De standaardwaarde is Black.

Voorbeelden

In het volgende voorbeeld ziet u hoe u eigenschappen instelt om het uiterlijk van de tekst in een AccessText besturingselement te wijzigen.

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

Opmerkingen

Informatie over afhankelijkheidseigenschappen

Item Waarde
Id-veld ForegroundProperty
Eigenschappen van metagegevens ingesteld op true AffectsRender, , SubPropertiesDoNotAffectRenderInherits

Van toepassing op

Zie ook