Class GanttTask
Represents the objects displayed from RadGanttView control. Every task can be a milestone, summary and a regular task.
Inherited Members
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
Constructors
GanttTask()
GanttTask(DateTime, DateTime)
Initializes a new instance of the GanttTask class.
Declaration
public GanttTask(DateTime start, DateTime end)
Parameters
System.DateTime
start
The start. |
System.DateTime
end
The end. |
GanttTask(DateTime, DateTime, String)
Initializes a new instance of the GanttTask class.
Declaration
public GanttTask(DateTime start, DateTime end, string title)
Parameters
System.DateTime
start
The start. |
System.DateTime
end
The end. |
System.String
title
The title. |
Properties
Children
Gets the children (subtasks).
Declaration
public IList<IGanttTask> Children { get; }
Property Value
System.Collections.Generic.IList<IGanttTask>
|
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
System.Nullable<System.DateTime>
|
Implements
Dependencies
Collection with relations to other tasks.
Declaration
public IList<IDependency> Dependencies { get; }
Property Value
System.Collections.Generic.IList<IDependency>
|
Description
Gets or set the description of the task.
Declaration
public string Description { get; set; }
Property Value
System.String
|
Implements
Duration
Gets or set the duration of the task.
Declaration
public TimeSpan Duration { get; set; }
Property Value
System.TimeSpan
|
Implements
End
Gets or sets the end.
Declaration
public DateTime End { get; set; }
Property Value
System.DateTime
The end. |
Implements
IsExpired
Gets whether the GanttTask is expired, i.e. its Start or End is after the Deadline date.
Declaration
public bool IsExpired { get; }
Property Value
System.Boolean
|
IsMilestone
Gets or sets a value indicating whether the instance is a milestone.
Declaration
public bool IsMilestone { get; set; }
Property Value
System.Boolean
|
Implements
IsSummary
Gets a value indicating whether the instance is a summary.
Declaration
public bool IsSummary { get; }
Property Value
System.Boolean
|
Implements
Progress
Gets or set the progress in percent of completion of the task.
Declaration
public double Progress { get; set; }
Property Value
System.Double
|
Implements
Resources
Collection with all resources associated with this task.
Declaration
public IList<IResource> Resources { get; }
Property Value
System.Collections.Generic.IList<IResource>
|
Start
Gets or sets the start.
Declaration
public DateTime Start { get; set; }
Property Value
System.DateTime
The start. |
Implements
Title
Gets or set the title of the task.
Declaration
public string Title { get; set; }
Property Value
System.String
|
Implements
UniqueId
Gets or sets the unique id.
Declaration
public string UniqueId { get; set; }
Property Value
System.String
The unique id. |
Methods
AddDependency(IGanttTask, DependencyType)
Adds a dependency to the task. Returns the created dependency.
Declaration
public IDependency AddDependency(IGanttTask fromTask, DependencyType type)
Parameters
IGanttTask
fromTask
A IGanttTask from which the dependency will be added. |
DependencyType
type
The type of the dependency. |
Returns
IDependency
Returns an object the added dependency. |
Implements
CheckIsExpired()
Declaration
protected virtual bool CheckIsExpired()
Returns
System.Boolean
|
OnPropertyChanged(PropertyChangedEventArgs)
Declaration
protected override void OnPropertyChanged(PropertyChangedEventArgs args)
Parameters
System.ComponentModel.PropertyChangedEventArgs
args
|
Overrides
RemoveDependency(IDependency)
Removes a dependency from a task.
Declaration
public bool RemoveDependency(IDependency dependency)
Parameters
IDependency
dependency
The dependency to be removed. |
Returns
System.Boolean
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 System.String that represents this instance.
Declaration
public override string ToString()
Returns
System.String
A System.String that represents this instance. |
Overrides
Explicit Interface Implementations
IDependant.Dependencies
Declaration
IEnumerable IDependant.Dependencies { get; }
Returns
System.Collections.IEnumerable
|
Implements
IGanttTask.Dependencies
Collection with relations to other tasks.
Declaration
IEnumerable IGanttTask.Dependencies { get; }
Returns
System.Collections.IEnumerable
|
Implements
IResourceContainer.Resources
Gets the resources assigned to the task.
Declaration
IList IResourceContainer.Resources { get; }
Returns
System.Collections.IList
|
Implements
IEditableHierarchical.InsertChildAtIndex(Object, Int32)
Declaration
void IEditableHierarchical.InsertChildAtIndex(object item, int index)
Parameters
System.Object
item
|
System.Int32
index
|
Implements
IEditableHierarchical.Remove(Object)
Declaration
void IEditableHierarchical.Remove(object item)
Parameters
System.Object
item
|
Implements
IHierarchical.Children
Gets the children (subtasks).
Declaration
IEnumerable IHierarchical.Children { get; }
Returns
System.Collections.IEnumerable
|
Implements
IStateProvider.LoadState(Object)
Declaration
void IStateProvider.LoadState(object state)
Parameters
System.Object
state
|
Implements
IStateProvider.SaveState()
Declaration
object IStateProvider.SaveState()
Returns
System.Object
|