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é

Brush utilisé 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 mappage de propriétés Windows Forms et WPF.

Utilisation d'attributs XAML

<object Foreground="Brush"/>

Valeurs XAML

Brosse Pour connaître la syntaxe de l’attribut XAML, consultez Brush .

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

Champ Identificateur ForegroundProperty
Propriétés de métadonnées définies sur true AffectsRender,

SubPropertiesDoNotAffectRender,

Inherits

S’applique à

Voir aussi