WindowsFormsHost.FontStyle Egenskap

Definition

Hämtar eller anger den värdbaserade kontrollens teckensnittsformat.

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

Egenskapsvärde

Teckensnittsformatet som används i den värdbaserade kontrollen.

Kommentarer

Den här beroendeegenskapen identifieras av fältet FontStyleProperty . Som standard mappas den här egenskapen för att uppdatera egenskapen för Control.Font den värdbaserade kontrollen. Mer information finns i Windows Forms and WPF Property Mapping.

XAML-attributanvändning

<object FontStyle="fontStyle"/>

XAML-värden

fontStyle Se FontStyle för syntax för XAML-attribut.

Information om beroendeegenskap

Objekt Value
Identifierarfält FontStyleProperty
Metadataegenskaper inställda på true AffectsMeasure, , AffectsRenderInherits

Gäller för

Se även