Adds a special date at the end of the collection.
| C# | SftDateSpecialDate refSpecialDateObj = object.Add(DateTime Date, SftDateRecurrenceConstants Recurrence = recurrenceSftDateNone); |
| VB.NET | refSpecialDateObj = object.Add(ByVal Date As Date, [ ByVal Recurrence As SftDateRecurrenceConstants = recurrenceSftDateNone ]) As SftDateSpecialDate |
| C++ | ISftDateSpecialDate* refSpecialDateObj = object->Add(DATE Date, enum SftDateRecurrenceConstants Recurrence = recurrenceSftDateNone); |
| C | HRESULT object->raw_Add(DATE Date, enum SftDateRecurrenceConstants Recurrence, ISftDateSpecialDate** refSpecialDateObj); |
object
Date
The date (the time is ignored).
Recurrence
Defines whether the special date recurs weekly, monthly or annually. The default is recurrenceSftDateNone.
| Name | Value | Description |
|---|---|---|
| recurrenceSftDateNone | 0 | The date only |
| recurrenceSftDateWeekly | 1 | The same day of every week |
| recurrenceSftDateMonthly | 2 | The same day of every month |
| recurrenceSftDateAnnually | 3 | The same day of every year |
refSpecialDateObj
Returns the new special date.
The Add method adds a special date at the end of the collection. A special date is a day the calendar shows differently, such as a holiday or an appointment. p The new special date is shown in bold and can be selected; its colors, picture and tooltip are set using the properties of the returned SftDateSpecialDate object. When several special dates apply to a day, the first one in the collection is used; Insert adds a special date at a given position. p The application can change how any day is shown, special date or not, in the DayFormatting event.
See Also SftDateSpecialDates Object | Object Hierarchy | Special Dates