## DateTimeOffset::AddMonths method


向 [DateTimeOffset](../) 对象添加指定的月份数。

```cpp
DateTimeOffset System::DateTimeOffset::AddMonths(int months) const
```


| 参数 | 类型 | 描述 |
| --- | --- | --- |
| 月份 | int | 正数或负数的月份数。 |

### ReturnValue

操作的结果。

## 另见

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