[]
Adds a new HolidayStyle with the specified key into the HolidayStyleCollection.
public int Add(string key)
Public Function Add(key As String) As Integer
| Type | Name | Description |
|---|---|---|
| string | key | The key of this HolidayStyle. |
| Type | Description |
|---|---|
| int | The index of this HolidayStyle in HolidayStyleCollection. |
Adds an item with the specified key and value into the HolidayStyleCollection.
public int Add(string key, HolidayStyle holidayStyle)
Public Function Add(key As String, holidayStyle As HolidayStyle) As Integer
| Type | Name | Description |
|---|---|---|
| string | key | The key of this item. |
| HolidayStyle | holidayStyle | The value of this item. |
| Type | Description |
|---|---|
| int | The index of this item in HolidayStyleCollection. |