Adds a Milestone object to the Milestones collection.
Syntax:
ActiveGanttVBNCtl.Milestone.Add(Caption As String, RowKey As String, MilestoneDate As Date, [Key As String = ""], [StyleIndex As String = ""], [Picture As String = ""], [LayerIndex As String = "0"])
The Add Method (Milestones Collection) syntax has these parts:
| Part |
Description |
| ActiveGanttVBNCtl.Milestones |
An object expression that evaluates to an ActiveGantt Schedule Control's Milestones collection. |
| Caption |
(Required). A string value that determines the text of the Milestone object. |
| RowKey |
(Required). A string value that determines the associated Row object for the Milestone object. |
| MilestoneDate |
(Required). A Date value that determines the start date of the Milestone object. |
| Key |
(Optional). A string value that uniquely identifies the Milestone object. |
| StyleIndex |
(Optional). A string value that specifies the index or key of the Style object associated with the Milestone object. |
| Picture |
(Optional). A long integer or string value that specifies the index (in the ImageList of the associated Style object) or the absolute path and filename of the picture to be displayed. |
| LayerIndex |
(Optional). A string value that specifies the index or key of the Layer object associated with the Milestone object. |
Remarks:
This method adds objects at the top of the list. In order to retrieve the index of the Milestone object that was added use the collection's Count property.
See Also:
Milestones Property , Clear Method (Milestones Collection), Count Property (Milestones Collection), Item Property (Milestones Collection), Remove Method (Milestones Collection), Sort Method (Milestones Collection)