WindowsFormsHost.FontStyle WindowsFormsHost.FontStyle WindowsFormsHost.FontStyle WindowsFormsHost.FontStyle Property

定義

取得或設定裝載的控制項字型格式。Gets or sets the hosted control's font style.

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

屬性值

裝載控制項中所使用的字型格式。The font style used in the hosted control.

備註

這個相依性屬性由FontStyleProperty欄位。This dependency property is identified by the FontStyleProperty field. 根據預設,這個屬性會對應至更新Control.Font託管控制項的屬性。By default, this property is mapped to update the Control.Font property of the hosted control. 如需詳細資訊,請參閱 Windows Form 和 WPF 屬性對應For more information, see Windows Forms and WPF Property Mapping.

XAML Attribute UsageXAML Attribute Usage

<object FontStyle="fontStyle"/>  

XAML 值XAML Values

fontStylefontStyle
請參閱FontStyleXAML 屬性語法。See FontStyle for XAML Attribute syntax.

相依性屬性資訊Dependency Property Information

識別項欄位Identifier field FontStyleProperty
若要設定的中繼資料屬性 trueMetadata properties set to true AffectsMeasure, AffectsRender, InheritsAffectsMeasure, AffectsRender, Inherits

適用於

另請參閱