## Calendar::GetMonthsInYear(int) const method


يحصل على عدد الأشهر في السنة المحددة.

```cpp
virtual int System::Globalization::Calendar::GetMonthsInYear(int year) const
```


| معامل | نوع | الوصف |
| --- | --- | --- |
| السنة | int | السنة للحصول على عدد الأشهر فيها. |

### ReturnValue

عدد الأشهر في السنة المحددة.

## انظر أيضًا

* Class [Calendar](../)
* Namespace [System::Globalization](../../)
* Library [Aspose.Font for C++](../../../)
## Calendar::GetMonthsInYear(int, int) const method


يحصل على عدد الأشهر في السنة المحددة.

```cpp
virtual int System::Globalization::Calendar::GetMonthsInYear(int year, int era) const
```


| معامل | نوع | الوصف |
| --- | --- | --- |
| السنة | int | السنة للحصول على عدد الأشهر فيها. |
| العصر | int | العصر. |

### ReturnValue

عدد الأشهر في السنة المحددة للحقبة المحددة.

## انظر أيضًا

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