Version

Add(TimeSpan,TimeSpanFormat,String) Method

Adds a new Task to this collection.
Syntax
'Declaration
 
Public Overloads Function Add( _
   ByVal duration As TimeSpan, _
   ByVal durationFormat As Infragistics.Win.TimeSpanFormat, _
   ByVal name As String _
) As Task
public Task Add( 
   TimeSpan duration,
   Infragistics.Win.TimeSpanFormat durationFormat,
   string name
)

Parameters

duration
The initial value for the Duration property.
durationFormat
Specifies the unit of time expression, i.e., Weeks, Days, Hours, or Minutes.
name
The initial value for the Name property.

Return Value

A reference to the resulting Task instance.
Remarks

Note: This overload automatically initializes the value of the task's StartDateTime property to the StartDate of the Project associated with the parent task, or the UnassignedProject if the task is being added to the root Tasks collection.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also