# GrapeCity.ActiveReports.Core.Rendering.JpCalendar.JapaneseCalendarEx.GetLeapMonth

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_ActiveReports_Core_Rendering_JpCalendar_JapaneseCalendarEx_GetLeapMonth_" data-uid="GrapeCity.ActiveReports.Core.Rendering.JpCalendar.JapaneseCalendarEx.GetLeapMonth*">GetLeapMonth Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_ActiveReports_Core_Rendering_JpCalendar_JapaneseCalendarEx_GetLeapMonth_" data-uid="GrapeCity.ActiveReports.Core.Rendering.JpCalendar.JapaneseCalendarEx.GetLeapMonth*"></a>
<h4 id="GrapeCity_ActiveReports_Core_Rendering_JpCalendar_JapaneseCalendarEx_GetLeapMonth_System_Int32_System_Int32_" data-uid="GrapeCity.ActiveReports.Core.Rendering.JpCalendar.JapaneseCalendarEx.GetLeapMonth(System.Int32,System.Int32)">GetLeapMonth(int, int)</h4>
<div class="markdown level1 summary"><p>Calculates the leap month for a specified year and era.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">[ComVisible(false)]
public override int GetLeapMonth(int year, int era)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">year</span></td>
      <td><p>A year.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">era</span></td>
      <td><p>An era.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><p>The return value is always 0 because the <span class="xref">JapaneseCalendarEx</span> type
does not support the notion of a leap month.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="overrides">Overrides</h5>
<div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.globalization.calendar.getleapmonth#system-globalization-calendar-getleapmonth(system-int32-system-int32)">Calendar.GetLeapMonth(int, int)</a></div>
<h5 class="exceptions">Exceptions</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Condition</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.argumentoutofrangeexception">ArgumentOutOfRangeException</a></td>
      <td><p>year or era is outside the range supported by the <span class="xref">JapaneseCalendarEx</span> type.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
