HomeProductsSupportDownloadsOnline StoreOnLine DocumentationLicensingAbout UsContact Us
User's Manual - ActiveGantt Scheduler Component for Visual Basic .Net - 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 (TimeBlocks Collection)

Adds a TimeBlock object to the TimeBlocks collection.

Syntax:

ActiveGanttVBNCtl.TimeBlocks.Add(StartDate As Date, EndDate As Date, [Key As String = ""], [StyleIndex As String = ""])

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

 Part  Description
ActiveGanttVBNCtl.TimeBlocks An object expression that evaluates to an ActiveGantt Schedule Control's TimeBlocks collection.
StartDate (Required). A Date value that determines the start date of the TimeBlock object.
EndDate (Required). A Date value that determines the end date of the TimeBlock object.
Key (Optional). A string value that uniquely identifies the TimeBlock object.
StyleIndex (Optional). A string value that specifies the index or key of the Style object associated with the TimeBlock object.

Remarks:

This method adds objects at the top of the list. In order to retrieve the index of the TimeBlock object that was added use the collection's Count property.

See Also:

TimeBlocks Property , Clear Method (TimeBlocks Collection), Count Property (TimeBlocks Collection), Item Property (TimeBlocks Collection), Remove Method (TimeBlocks Collection)

 

Home | Products | Support | Downloads | OnLine Store

Online Documentation | Licensing | About Us | Contact Us

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