## GetHeight() {#getheight}

返回此字体的行间距（以像素为单位）。

```csharp
public float GetHeight()
```

### 返回值

此字体的行间距（以像素为单位）。

### 也可以看看

* class [Font](../../font)
* 命名空间 [System.Drawing](../../font)
* 部件 [Aspose.Drawing](../../../)

---

## GetHeight(Graphics) {#getheight_2}

返回行距，以指定的当前单位Graphics 这种字体。

```csharp
public float GetHeight(Graphics graphics)
```

| 范围 | 类型 | 描述 |
| --- | --- | --- |
| graphics | Graphics | 一个Graphics它保存显示设备的垂直分辨率（以每英寸点数为单位）以及页面单位和页面比例的设置。 |

### 返回值

此字体的行间距（以像素为单位）。

### 也可以看看

* class [Graphics](../../graphics)
* class [Font](../../font)
* 命名空间 [System.Drawing](../../font)
* 部件 [Aspose.Drawing](../../../)

---

## GetHeight(float) {#getheight_1}

返回此高度（以像素为单位）Font当绘制到具有指定垂直分辨率的设备时。

```csharp
public float GetHeight(float dpi)
```

| 范围 | 类型 | 描述 |
| --- | --- | --- |
| dpi | Single | 垂直分辨率，以每英寸点数为单位，用于计算字体的高度。 |

### 返回值

这个高度，以像素为单位Font.

### 也可以看看

* class [Font](../../font)
* 命名空间 [System.Drawing](../../font)
* 部件 [Aspose.Drawing](../../../)

<!-- DO NOT EDIT: generated by xmldocmd for Aspose.Drawing.dll -->
