WindowsFormsHost.FontWeight 屬性

定義

取得或設定裝載的控制項字型粗細。

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

屬性值

裝載控制項中所使用的字型粗細。

備註

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

XAML Attribute Usage

<object FontWeight="fontWeight"/>

XAML 值

fontWeight 如需 XAML 屬性語法,請參閱 FontWeight

相依性屬性資訊

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

適用於

另請參閱