Control.FontHeight Control.FontHeight Control.FontHeight Control.FontHeight Property

定義

取得或設定控制項字型的高度。Gets or sets the height of the font of the control.

protected:
 property int FontHeight { int get(); void set(int value); };
protected int FontHeight { get; set; }
member this.FontHeight : int with get, set
Protected Property FontHeight As Integer

屬性值

控制項的 Font 高度 (單位為像素)。The height of the Font of the control in pixels.

備註

注意

FontHeight屬性不應設為控制項以外的任何值Font.Height值,則為-1。The FontHeight property should not be set to any value other than the control's Font.Height value, or -1. 設定FontHeight為-1 會影響的清除快取的高度值,而且參考的屬性會在下一次重新計算值。Setting FontHeight to -1 has the effect of clearing the cached height value, and the value is recalculated the next time the property is referenced.

適用於

另請參閱