WindowsFormsHost.Foreground Propriété
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
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 |