[]
        
(Showing Draft Content)

GrapeCity.Wpf.SpreadSheet.CellType.Editors.Holiday.-ctor

Holiday Constructor

Holiday()

Initializes a new instance of the Holiday class.

Declaration
public Holiday()
Public Sub New()

Holiday(int, int)

Initializes a new instance of the Holiday class with the specified settings.

Declaration
public Holiday(int month, int day)
Public Sub New(month As Integer, day As Integer)
Parameters
Type Name Description
int month

An int value that represents the holiday month.

int day

An int value that represents the holiday day.

Exceptions
Type Condition
ArgumentOutOfRangeException

month value is less than 1 or greater than 12; day value is less than 1 or greater than the last day of the month in the leap year.

Holiday(string, int, int)

Initializes a new instance of the Holiday class with the specified settings.

Declaration
public Holiday(string name, int month, int day)
Public Sub New(name As String, month As Integer, day As Integer)
Parameters
Type Name Description
string name

A string value indicates the name of the force holiday.

int month

An int value that represents the holiday month.

int day

An int value that represents the holiday day.

Exceptions
Type Condition
ArgumentOutOfRangeException

month value is less than 1 or greater than 12; day value is less than 1 or greater than the last day of the month in the leap year.

Holiday(int, int, int, int)

Initializes a new instance of the Holiday class with the specified settings.

Declaration
public Holiday(int startMonth, int startDay, int endMonth, int endDay)
Public Sub New(startMonth As Integer, startDay As Integer, endMonth As Integer, endDay As Integer)
Parameters
Type Name Description
int startMonth

An int value that represents the starting month of the holiday.

int startDay

An int value that represents the starting day of the holiday.

int endMonth

An int value that represents the ending month of the holiday.

int endDay

An int value that represents the ending day of the holiday.

Exceptions
Type Condition
ArgumentOutOfRangeException

startMonth or endMonth value is less than 1 or greater than 12; startDay value is less than 1 or greater than the last day of the startMonth in the leap year. endDay value is less than 1 or greater than the last day of the endMonth in the leap year.

Holiday(string, int, int, int, int)

Initializes a new instance of the Holiday class with a specified holiday date.

Declaration
public Holiday(string name, int startMonth, int startDay, int endMonth, int endDay)
Public Sub New(name As String, startMonth As Integer, startDay As Integer, endMonth As Integer, endDay As Integer)
Parameters
Type Name Description
string name

A string value indicates the name of the force holiday.

int startMonth

An int value that represents the starting month of the holiday.

int startDay

An int value that represents the starting day of the holiday.

int endMonth

An int value that represents the ending month of the holiday.

int endDay

An int value that represents the ending day of the holiday.

Exceptions
Type Condition
ArgumentOutOfRangeException

startMonth or endMonth value is less than 1 or greater than 12; startDay value is less than 1 or greater than the last day of the startMonth in the leap year. endDay value is less than 1 or greater than the last day of the endMonth in the leap year.