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

Sort Method (Milestones Collection)

Sorts Milestone objects.

Syntax:

ActiveGanttVBNCtl.Milestones.Sort (PropertyName As String, Descending As Boolean, SortType As E_SORTTYPE, Optional StartIndex As Long = 1, Optional EndIndex As Long = Rows.Count)

The Sort Method (Milestones Collection) syntax has these parts:

 Part  Description
ActiveGanttVBNCtl.Milestones An object expression that evaluates to an ActiveGantt Schedule Control's Milestones collection.
PropertyName A string value that determines the name of the Milestone object property that you wish to sort by.
Descending A boolean value that determines the sort order as described in settings.
SortType A numeric value that determines the casting or conversion that will take place (only for sort purposes) on the value of the property specified by the PropertyName parameter as described in settings.
StartIndex (optional). A long integer value that determines the index of the first Milestone object that will be affected by the sort.
EndIndex (optional). A long integer value that determines the index of the last Milestone object that will be affected by the sort.

The settings for Descending are:

 Setting  Description
True The objects will be sorted in descending order.
False The objects will be sorted in ascending order.

The settings for SortType are:

 Setting  Description
0 Values will be treated as strings for sort purposes.
1 Values will be treated as numbers for sort purposes.
2 Values will be treated as dates for sort purposes.

Remarks:

Use this method to change the order of Milestone objects by sorting on the properties of the Milestone object.

See Also:

Milestones Property , Add Method (Milestones Collection), Clear Method (Milestones Collection), Count Property (Milestones Collection), Item Property (Milestones Collection), Remove Method (Milestones 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.