WindowsFormsHost.FontStyle 屬性

定義

取得或設定裝載的控制項字型格式。

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

屬性值

裝載控制項中所使用的字型格式。

備註

此相依性屬性是由 FontStyleProperty 欄位識別。 根據預設,此屬性會對應至更新 Control.Font 託管控制項的 屬性。 如需詳細資訊,請參閱 Windows Form 和 WPF 屬性對應

XAML Attribute Usage

<object FontStyle="fontStyle"/>

XAML 值

fontStyle 如需 XAML 屬性語法,請參閱 FontStyle

相依性屬性資訊

識別碼欄位 FontStyleProperty
設定為 的中繼資料屬性 true AffectsMeasure, AffectsRender, Inherits

適用於

另請參閱