WindowsFormsHost.FontWeight 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定託管控制項的字型權重。
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 Forms 和 WPF 屬性對應。
XAML 屬性使用方式
<object FontWeight="fontWeight"/>
XAML 值
字體粗細 請參閱 FontWeight XAML 屬性語法。
相依財產資訊
| Item | 價值觀 |
|---|---|
| 識別碼欄位 | FontWeightProperty |
元資料屬性設為 true |
AffectsMeasure、AffectsRender、Inherits |