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.

适用于

另请参阅