HomeProductsSupportDownloadsOnline StoreOnLine DocumentationLicensingAbout UsContact Us
User's Manual - ActiveGantt Scheduler Component for Visual Basic 6.0 And MFC - The Source Code Store .Com - Professional source code for Microsoft Visual Basic and Visual Studio .NET and specialized software components.
Back to Table of Contents
Example
Send Feedback

Add Method (Tasks Collection)

Adds a Task object to the Tasks collection.

Syntax:

ActiveGanttVBCtl.Tasks.Add(Caption As String, RowKey As String, StartDate As Date, EndDate As Date, [Key As String = ""], [StyleIndex As String = "0"], [LayerIndex As String = "0"])

The Add Method (Tasks Collection) syntax has these parts:

 Part  Description
ActiveGanttVBCtl.Tasks An object expression that evaluates to an ActiveGantt Schedule Control's Tasks collection.
Caption (Required). A string value that determines the text of the Task object.
RowKey (Required). A string value that determines the associated Row object for the Task object.
StartDate (Required). A Date value that determines the start date of the Task object.
EndDate (Required). A Date value that determines the end date of the Task object.
Key (Optional). A string value that uniquely identifies the Task object.
StyleIndex (Optional). A string value that specifies the index or key of the Style object associated with the Task object.
LayerIndex (Optional). A string value that specifies the index or key of the Layer object associated with the Task object.

Remarks:

This method adds objects at the top of the list. In order to retrieve the index of the Task object that was added use the collection's Count property. To force a complete repaint of the control when this method completes invoke the Redraw method.

See Also:

Tasks Property , Clear Method (Tasks Collection), Count Property (Tasks Collection), Item Property (Tasks Collection), Remove Method (Tasks Collection), Sort Method (Tasks Collection)

 

Home | Products | Support | Downloads | OnLine Store

Online Documentation | Licensing | About Us | Contact Us

Privacy Terms of use Copyright (c)2002-2005 The Source Code Store LLC. All trademarks are property of their legal owner.