Share via


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 窗体和 WPF 属性映射

XAML 属性用法

<object FontWeight="fontWeight"/>

XAML 值

fontWeight 有关 XAML 属性语法,请参阅 FontWeight

依赖项属性信息

标识符字段 FontWeightProperty
元数据属性设置为 true AffectsMeasure, AffectsRender, Inherits

适用于

另请参阅