WindowsFormsHost.FontWeight WindowsFormsHost.FontWeight WindowsFormsHost.FontWeight WindowsFormsHost.FontWeight Property

定義

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

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

屬性值

裝載控制項中所使用的字型粗細。The font weight used in the hosted control.

備註

這個相依性屬性由FontWeightProperty欄位。This dependency property is identified by the FontWeightProperty 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 FontWeight="fontWeight"/>  

XAML 值XAML Values

fontWeightfontWeight
請參閱FontWeightXAML 屬性語法。See FontWeight for XAML Attribute syntax.

相依性屬性資訊Dependency Property Information

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

適用於

另請參閱