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


返回当前对象表示的字体的行间距，以指定的 [Graphics](../../graphics/) 对象的当前单位表示。

```cpp
float System::Drawing::Font::GetHeight(const SharedPtr<Graphics> &graphics)
```


| Parameter | Type | 描述 |
| --- | --- | --- |
| graphics | const SharedPtr\<Graphics\>\& | 一个指定测量单位的 [Graphics](../../graphics/) 对象 |

## 另见

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [Graphics](../../graphics/)
* Class [Font](../)
* Namespace [System::Drawing](../../)
* Library [Aspose.Page for C++](../../../)
## Font::GetHeight(float) method


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

```cpp
float System::Drawing::Font::GetHeight(float dpi=DEFAULT_FONT_OPERATIONS_DPI)
```


| Parameter | Type | 描述 |
| --- | --- | --- |
| dpi | 单精度浮点数 | 显示设备的垂直分辨率 |

### ReturnValue

字体的像素高度

## 另见

* Class [Font](../)
* Namespace [System::Drawing](../../)
* Library [Aspose.Page for C++](../../../)
