Share via


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

XAML 属性用法

<object FontStyle="fontStyle"/>

XAML 值

fontStyle 有关 XAML 属性语法,请参阅 FontStyle

依赖项属性信息

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

适用于

另请参阅