## DrawString(string, Font, Brush, RectangleF) {#drawstring_4}

用指定的矩形在指定的矩形中绘制指定的文本字符串Brush 和Font使用指定格式属性的对象StringFormat.

```csharp
public void DrawString(string s, Font font, Brush brush, RectangleF layoutRectangle)
```

| 范围 | 类型 | 描述 |
| --- | --- | --- |
| s | String | 要绘制的字符串。 |
| font | Font | Font定义字符串的文本格式。 |
| brush | Brush | Brush它决定了绘制文本的颜色和纹理。 |
| layoutRectangle | RectangleF | RectangleF结构，它指定应用于绘制文本的绘制 text 的位置。 |

### 也可以看看

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

---

## DrawString(string, Font, Brush, PointF) {#drawstring_2}

在指定位置绘制指定文本字符串Brush 和Font对象.

```csharp
public void DrawString(string s, Font font, Brush brush, PointF point)
```

| 范围 | 类型 | 描述 |
| --- | --- | --- |
| s | String | 要绘制的字符串。 |
| font | Font | Font定义字符串的文本格式。 |
| brush | Brush | Brush它决定了绘制文本的颜色和纹理。 |
| point | PointF | PointF结构，指定绘制文本的左上角。 |

### 也可以看看

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

---

## DrawString(string, Font, Brush, PointF, StringFormat) {#drawstring_3}

在指定位置绘制指定文本字符串Brush和 Font使用指定格式属性的对象StringFormat.

```csharp
public void DrawString(string s, Font font, Brush brush, PointF point, StringFormat format)
```

| 范围 | 类型 | 描述 |
| --- | --- | --- |
| s | String | 要绘制的字符串。 |
| font | Font | Font定义字符串的文本格式。 |
| brush | Brush | Brush它决定了绘制文本的颜色和纹理。 |
| point | PointF | PointF结构，指定绘制文本的左上角。 |
| format | StringFormat | StringFormat指定格式属性， ，例如行间距和对齐方式，应用于绘制的文本。 |

### 也可以看看

* class [Font](../../font)
* class [Brush](../../brush)
* struct [PointF](../../pointf)
* class [StringFormat](../../stringformat)
* class [Graphics](../../graphics)
* 命名空间 [System.Drawing](../../graphics)
* 部件 [Aspose.Drawing](../../../)

---

## DrawString(string, Font, Brush, float, float, StringFormat) {#drawstring_1}

在指定位置绘制指定文本字符串Brush和 Font使用指定格式属性的对象StringFormat.

```csharp
public void DrawString(string s, Font font, Brush brush, float x, float y, StringFormat format)
```

| 范围 | 类型 | 描述 |
| --- | --- | --- |
| s | String | 要绘制的字符串。 |
| font | Font | Font定义字符串的文本格式。 |
| brush | Brush | Brush它决定了绘制文本的颜色和纹理。 |
| x | Single | 绘制文本左上角的 x 坐标。 |
| y | Single | 绘制文本左上角的 y 坐标。 |
| format | StringFormat | StringFormat指定格式属性， ，例如行间距和对齐方式，应用于绘制的文本。 |

### 也可以看看

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

---

## DrawString(string, Font, Brush, float, float) {#drawstring}

在指定位置绘制指定文本字符串Brush和Font对象.

```csharp
public void DrawString(string s, Font font, Brush brush, float x, float y)
```

| 范围 | 类型 | 描述 |
| --- | --- | --- |
| s | String | 要绘制的字符串。 |
| font | Font | Font定义字符串的文本格式。 |
| brush | Brush | Brush它决定了绘制文本的颜色和纹理。 |
| x | Single | 绘制文本左上角的 x 坐标。 |
| y | Single | 绘制文本左上角的 y 坐标。 |

### 也可以看看

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

---

## DrawString(string, Font, Brush, RectangleF, StringFormat) {#drawstring_5}

用指定的矩形在指定的矩形中绘制指定的文本字符串Brush 和Font使用指定格式属性的对象StringFormat.

```csharp
public void DrawString(string s, Font font, Brush brush, RectangleF layoutRectangle, 
    StringFormat format)
```

| 范围 | 类型 | 描述 |
| --- | --- | --- |
| s | String | 要绘制的字符串。 |
| font | Font | Font定义字符串的文本格式。 |
| brush | Brush | Brush它决定了绘制文本的颜色和纹理。 |
| layoutRectangle | RectangleF | RectangleF指定绘制文本位置的结构。 |
| format | StringFormat | StringFormat指定应用于绘制文本的格式属性，例如行间距和对齐方式， 。 |

### 也可以看看

* class [Font](../../font)
* class [Brush](../../brush)
* struct [RectangleF](../../rectanglef)
* class [StringFormat](../../stringformat)
* class [Graphics](../../graphics)
* 命名空间 [System.Drawing](../../graphics)
* 部件 [Aspose.Drawing](../../../)

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