HeaderPane
Main
Hide
Share Link
Print

Insert Method, SftDateSpecialDates Object

Inserts a special date.

Syntax

C#SftDateSpecialDate refSpecialDateObj = object.Insert(int Index, DateTime Date, SftDateRecurrenceConstants Recurrence = recurrenceSftDateNone);
VB.NETrefSpecialDateObj = object.Insert(ByVal Index As Integer, ByVal Date As Date, [ ByVal Recurrence As SftDateRecurrenceConstants = recurrenceSftDateNone ]) As SftDateSpecialDate
C++ISftDateSpecialDate* refSpecialDateObj = object->Insert(long Index, DATE Date, enum SftDateRecurrenceConstants Recurrence = recurrenceSftDateNone);
CHRESULT object->raw_Insert(long Index, DATE Date, enum SftDateRecurrenceConstants Recurrence, ISftDateSpecialDate** refSpecialDateObj);

object

A SftDateSpecialDates object.

Index

The zero-based position of the new special date, 0 through Count.

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 Insert method inserts a special date at the given position. Special dates at that position and after it move up by one. An index outside 0 through Count causes an error. p When several special dates apply to a day, the first one in the collection is used, so inserting a special date in front of others gives it priority.

See Also SftDateSpecialDates Object | Object Hierarchy | Special Dates


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