TTMSFNCGanttHolidays Class
Collection of holiday date ranges used by a project calendar.
API unit family: TMSFNCGanttClasses
Inherits from: TTMSFNCOwnedCollection
Syntax
TTMSFNCGanttHolidays = class(TTMSFNCOwnedCollection)
Properties
| Name | Description |
|---|---|
| Items | Gets or sets a holiday by zero-based collection index. |
Methods
| Name | Description |
|---|---|
| Add | Adds a holiday item to the end of the collection. |
| AddHoliday | Adds a holiday for the specified date or date/time range. |
| Clear | Removes all holidays from the collection. |
| Delete | Deletes the holiday at the specified collection index. |
| Insert | Inserts a holiday at the specified collection index. |
| IsHoliday | Returns whether the specified date/time falls inside a holiday range. |
| NextAvailableMoment | Returns the next date/time that is outside holiday ranges. |
| PreviousAvailableMoment | Returns the previous date/time that is outside holiday ranges. |