WindowsFormsHost.FontSize 屬性

定義

取得或設定裝載的控制項字型大小。

public:
 property double FontSize { double get(); void set(double value); };
public double FontSize { get; set; }
member this.FontSize : double with get, set
Public Property FontSize As Double

屬性值

裝載控制項中所使用的字型大小。

備註

此相依性屬性是由 FontSizeProperty 欄位識別。 根據預設,此屬性會對應至更新 Control.Font 託管控制項的 屬性。 如需詳細資訊,請參閱 Windows Form 和 WPF 屬性對應

XAML Attribute Usage

<object FontSize="double"/>

XAML 值

值等於或大於 0.0 的字串表示 Double 法,但小於 PositiveInfinity 。 這會解譯為裝置獨立單位, (1/96 英吋) 測量。 字串不需要明確包含小數點。 例如,可接受的值為 1。

相依性屬性資訊

識別碼欄位 FontSizeProperty
設定為 的中繼資料屬性 true AffectsMeasure, AffectsRender, Inherits

適用於

另請參閱