ClassGanttTask
Represents the objects displayed from RadGanttView control. Every task can be a milestone, summary and a regular task.
Definition
Namespace:Telerik.Windows.Controls.GanttView
Assembly:Telerik.Windows.Controls.GanttView.dll
Syntax:
public class GanttTask : PropertyChangedBase, INotifyPropertyChanged, IGanttTask, IResourceContainer, IStateProvider, IMilestone, ISummary, IHierarchical, IDateRange, IEditableHierarchical, IDependant
Inheritance: objectPropertyChangedBaseGanttTask
Implements:
Inherited Members
Constructors
GanttTask()
Initializes a new instance of the GanttTask class.
Declaration
public GanttTask()
GanttTask(DateTime, DateTime)
Initializes a new instance of the GanttTask class.
GanttTask(DateTime, DateTime, string)
Initializes a new instance of the GanttTask class.
Properties
Children
Gets the children (subtasks).
Declaration
public IList<IGanttTask> Children { get; }
Property Value
Deadline
Gets or set the deadline date of the task. This property is also used for calculating the critical path.
Declaration
public DateTime? Deadline { get; set; }
Property Value
Implements
Dependencies
Collection with relations to other tasks.
Declaration
public IList<IDependency> Dependencies { get; }
Property Value
Description
Gets or set the description of the task.
Declaration
public string Description { get; set; }
Property Value
Implements
Duration
Gets or set the duration of the task.
Declaration
public TimeSpan Duration { get; set; }
Property Value
Implements
End
Gets or sets the end.
Declaration
public DateTime End { get; set; }
Property Value
The end.
Implements
IsExpired
Gets whether the GanttTask is expired, i.e. its Start or End is after the Deadline date.
IsMilestone
Gets or sets a value indicating whether the instance is a milestone.
IsSummary
Gets a value indicating whether the instance is a summary.
Progress
Gets or set the progress in percent of completion of the task.
Resources
Collection with all resources associated with this task.
Start
Gets or sets the start.
Declaration
public DateTime Start { get; set; }
Property Value
The start.
Implements
Title
Gets or set the title of the task.
Methods
AddDependency(IGanttTask, DependencyType)
Adds a dependency to the task. Returns the created dependency.
Declaration
public IDependency AddDependency(IGanttTask fromTask, DependencyType type)
Parameters
fromTask
A IGanttTask from which the dependency will be added.
type
The type of the dependency.
Returns
Returns an object the added dependency.
Implements
OnPropertyChanged(PropertyChangedEventArgs)
Declaration
protected override void OnPropertyChanged(PropertyChangedEventArgs args)
Parameters
args
Overrides
RemoveDependency(IDependency)
Removes a dependency from a task.
Declaration
public bool RemoveDependency(IDependency dependency)
Parameters
dependency
The dependency to be removed.
Returns
Returns true if item is successfully removed; otherwise, false. This method also returns false if item was not found into the collection of dependencies.
Implements
ToString()
Returns a string that represents this instance.