WindowsFormsHost.FontFamily 屬性

定義

取得或設定裝載控制項的字型家族。

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

屬性值

裝載控制項中所使用的字型家族。

備註

此屬性設定只會影響範本使用 屬性做為參數的控制項。 它不會影響其他控制項。

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

XAML Attribute Usage

<object FontFamily="fontFamily"/>

XAML 值

fontFamily 如需 XAML 屬性語法,請參閱 FontFamily

相依性屬性資訊

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

適用於

另請參閱