Control.FontHeight 屬性

定義

取得或設定控制項字型的高度。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

屬性值

Int32

控制項的 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.

適用於

另請參閱