Partager via


WindowsFormsHost.Foreground Propriété

Définition

Obtient ou définit la couleur de premier plan du contrôle hébergé.

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

Valeur de propriété

Utilisé Brush pour définir la couleur de premier plan du contrôle hébergé.

Remarques

Cette propriété de dépendance est identifiée par le ForegroundProperty champ. Par défaut, cette propriété est mappée pour mettre à jour la Control.ForeColor propriété du contrôle hébergé. Pour plus d’informations sur le mappage de la Foreground propriété, consultez Windows Forms et WPF Property Mapping.

Utilisation des attributs XAML

<object Foreground="Brush"/>

Valeurs XAML

Brosse Consultez Brush la syntaxe d’attribut XAML.

Informations sur les propriétés de dépendance

Élément Valeur
Champ d’identificateur ForegroundProperty
Propriétés de métadonnées définies sur true AffectsRender,

SubPropertiesDoNotAffectRender,

Inherits

S’applique à

Voir aussi