Partage via


WindowsFormsHost.FontStyle Propriété

Définition

Obtient ou définit le style de police du contrôle hébergé.

public:
 property System::Windows::FontStyle FontStyle { System::Windows::FontStyle get(); void set(System::Windows::FontStyle value); };
public System.Windows.FontStyle FontStyle { get; set; }
member this.FontStyle : System.Windows.FontStyle with get, set
Public Property FontStyle As FontStyle

Valeur de propriété

Style de police utilisé dans le contrôle hébergé.

Remarques

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

Utilisation des attributs XAML

<object FontStyle="fontStyle"/>

Valeurs XAML

Fontstyle Consultez FontStyle la syntaxe d’attribut XAML.

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

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

S’applique à

Voir aussi