System::Drawing::Font::GetHeight 方法

Font::GetHeight(const SharedPtr<Graphics>&) method

返回当前对象表示的字体的行间距,以指定的 Graphics 对象的当前单位表示。

float System::Drawing::Font::GetHeight(const SharedPtr<Graphics> &graphics)
ParameterType描述
graphicsconst SharedPtr<Graphics>&一个指定测量单位的 Graphics 对象

另见

Font::GetHeight(float) method

返回在使用指定垂直分辨率的显示设备绘制时,当前对象表示的字体的高度。

float System::Drawing::Font::GetHeight(float dpi=DEFAULT_FONT_OPERATIONS_DPI)
ParameterType描述
dpi单精度浮点数显示设备的垂直分辨率

ReturnValue

字体的像素高度

另见