GanttTask
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
Properties
Gets the children (subtasks).
public IList<IGanttTask> Children { get; }
Gets or set the deadline date of the task. This property is also used for calculating the critical path.
public DateTime? Deadline { get; set; }
Implements:
Collection with relations to other tasks.
public IList<IDependency> Dependencies { get; }
Gets or set the description of the task.
public string Description { get; set; }
Implements:
Gets or set the duration of the task.
public TimeSpan Duration { get; set; }
Implements:
Gets or sets the end.
public DateTime End { get; set; }
The end.
Implements:
Gets whether the GanttTask is expired, i.e. its Start or End is after the Deadline date.
public bool IsExpired { get; }
Gets or sets a value indicating whether the instance is a milestone.
public bool IsMilestone { get; set; }
Implements:
Gets a value indicating whether the instance is a summary.
public bool IsSummary { get; }
Implements:
Gets or set the progress in percent of completion of the task.
public double Progress { get; set; }
Implements:
Collection with all resources associated with this task.
public IList<IResource> Resources { get; }
Gets or sets the start.
public DateTime Start { get; set; }
The start.
Implements:
Methods
Adds a dependency to the task. Returns the created dependency.
public IDependency AddDependency(IGanttTask fromTask, DependencyType type)
A IGanttTask from which the dependency will be added.
typeDependencyTypeThe type of the dependency.
Returns:Returns an object the added dependency.
Implements:
protected override void OnPropertyChanged(PropertyChangedEventArgs args)
Overrides:
Removes a dependency from a task.
public bool RemoveDependency(IDependency 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: