Spread Windows Forms 15.0
GrapeCity.CalcEngine Assembly / GrapeCity.CalcEngine Namespace / CalcHelper Class / IsLeapYear Method
The year.
if set to true the year 1900 count as leap year as Excel; otherwise, false.


In This Topic
    IsLeapYear Method
    In This Topic
    Determines whether the specified year is leap year.
    Syntax
    'Declaration
     
    
    Public Shared Function IsLeapYear( _
       ByVal year As Integer, _
       ByVal excelCompatible As Boolean _
    ) As Boolean
    'Usage
     
    
    Dim year As Integer
    Dim excelCompatible As Boolean
    Dim value As Boolean
     
    value = CalcHelper.IsLeapYear(year, excelCompatible)
    public static bool IsLeapYear( 
       int year,
       bool excelCompatible
    )

    Parameters

    year
    The year.
    excelCompatible
    if set to true the year 1900 count as leap year as Excel; otherwise, false.

    Return Value

    true if the year 1900 count as leap year; otherwise, false.
    See Also