## RectangleF::Inflate(const SizeF\&) method


在保持矩形几何中心位置不变的情况下，增加当前对象表示的矩形的宽度和高度。宽度和高度在两个方向上分别按指定尺寸对象的宽度和高度值增加。

```cpp
void System::Drawing::RectangleF::Inflate(const SizeF &size)
```


| Parameter | Type | 描述 |
| --- | --- | --- |
| size | const SizeF\& | 指定矩形宽度和高度增量的 [SizeF](../../sizef/) 对象 |

## 另见

* Class [SizeF](../../sizef/)
* Class [RectangleF](../)
* Namespace [System::Drawing](../../)
* Library [Aspose.Page for C++](../../../)
## RectangleF::Inflate(float, float) method


在保持矩形几何中心位置不变的情况下，增加当前对象表示的矩形的宽度和高度。宽度和高度在两个方向上均按指定的量增加。

```cpp
void System::Drawing::RectangleF::Inflate(float width, float height)
```


| Parameter | Type | 描述 |
| --- | --- | --- |
| width | 单精度浮点数 | 矩形宽度在两个方向上增加的量 |
| height | 单精度浮点数 | 矩形高度在两个方向上增加的量 |

## 另见

* Class [RectangleF](../)
* Namespace [System::Drawing](../../)
* Library [Aspose.Page for C++](../../../)
## RectangleF::Inflate(const RectangleF\&, float, float) method


在保持矩形几何中心位置不变的情况下，增加指定对象表示的矩形的宽度和高度。宽度和高度在两个方向上均按指定的量增加。

```cpp
static RectangleF System::Drawing::RectangleF::Inflate(const RectangleF &rect, float x, float y)
```


| Parameter | Type | 描述 |
| --- | --- | --- |
| rect | const RectangleF\& | 要膨胀的矩形 |
| x | 单精度浮点数 | 矩形宽度在两个方向上增加的量 |
| y | 单精度浮点数 | 矩形高度在两个方向上增加的量 |

### ReturnValue

表示放大矩形的 [RectangleF](../) 对象

## 另见

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