HeaderPane
Main
Hide
Share Link
Print

Add Method, SftDateSpecialDates Object

Adds a special date at the end of the collection.

Syntax

C#SftDateSpecialDate refSpecialDateObj = object.Add(DateTime Date, SftDateRecurrenceConstants Recurrence = recurrenceSftDateNone);
VB.NETrefSpecialDateObj = object.Add(ByVal Date As Date, [ ByVal Recurrence As SftDateRecurrenceConstants = recurrenceSftDateNone ]) As SftDateSpecialDate
C++ISftDateSpecialDate* refSpecialDateObj = object->Add(DATE Date, enum SftDateRecurrenceConstants Recurrence = recurrenceSftDateNone);
CHRESULT object->raw_Add(DATE Date, enum SftDateRecurrenceConstants Recurrence, ISftDateSpecialDate** refSpecialDateObj);

object

A SftDateSpecialDates object.

Date

The date (the time is ignored).

Recurrence

Defines whether the special date recurs weekly, monthly or annually. The default is recurrenceSftDateNone.

NameValueDescription
recurrenceSftDateNone0The date only
recurrenceSftDateWeekly1The same day of every week
recurrenceSftDateMonthly2The same day of every month
recurrenceSftDateAnnually3The same day of every year

refSpecialDateObj

Returns the new special date.

Comments

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


Last Updated 11/29/2026 - (email)
© 2026 Softel vdm, Inc.