RecurringGanttTask
Represents a recurring Gantt task series of up to 366 scheduled occurrences.
Definition
Namespace:Telerik.Windows.Controls.GanttView
Assembly:Telerik.Windows.Controls.GanttView.dll
Syntax:
public sealed class RecurringGanttTask : PropertyChangedBase, INotifyPropertyChanged, IRecurringGanttTask, IGanttTask, IResourceContainer, IStateProvider, ISummary, IHierarchical, IDateRange
Inheritance: objectPropertyChangedBaseRecurringGanttTask
Implements:
Inherited Members
Constructors
Initializes a recurring task series.
public RecurringGanttTask(string seriesId, DateTime anchor, TimeSpan duration, RecurrencePattern pattern)
A stable, non-empty identifier for the series.
anchorDateTimeThe starting date and time used to calculate occurrences.
durationTimeSpanThe duration of each occurrence.
patternRecurrencePatternThe finite recurrence pattern for the series.
Exceptions: ArgumentExceptionseriesId is null, empty, or consists only of white-space characters, or pattern is invalid.
pattern is null.
duration is negative, or the pattern generates more than 366 occurrences.
Properties
Gets the starting date and time used to calculate occurrences.
public DateTime Anchor { get; }
Implements:
Gets the occurrences as child tasks.
public ReadOnlyObservableCollection<IGanttTask> Children { get; }
Gets or sets the deadline applied to occurrences that do not override it.
public DateTime? Deadline { get; set; }
Implements:
Gets the original start dates of occurrences deleted from the series.
public IEnumerable<DateTime> DeletedOccurrenceStarts { get; }
Gets or sets the description applied to occurrences that do not override it.
public string Description { get; set; }
Implements:
Gets the time span between the earliest start and latest end of the included occurrences. Setting this property is not supported.
public TimeSpan Duration { get; set; }
Implements:
Gets the latest end time of the included occurrences. Setting this property is not supported.
public DateTime End { get; set; }
Implements:
Gets the included occurrences with occurrence-specific overrides.
public IReadOnlyList<GanttTaskOccurrence> Exceptions { get; }
Gets a value indicating that this series acts as a summary task.
public bool IsSummary { get; }
Implements:
Gets the duration of each occurrence.
public TimeSpan OccurrenceDuration { get; }
Implements:
Gets the occurrences currently included in the series.
public IReadOnlyList<GanttTaskOccurrence> Occurrences { get; }
Implements:
Gets or sets the progress applied to occurrences that do not override it.
public double Progress { get; set; }
Implements:
Gets a copy of the recurrence pattern used by the series.
public RecurrencePattern RecurrencePattern { get; }
Implements:
Gets the resources assigned to the series and its occurrences.
public IList<IResource> Resources { get; }
Gets the stable identifier of the series.
public string SeriesId { get; }
Implements:
Gets the earliest start time of the included occurrences. Setting this property is not supported.
public DateTime Start { get; set; }
Implements:
Methods
Replaces the recurrence definition and regenerates the series occurrences.
public void ApplyRecurrence(DateTime anchor, TimeSpan duration, RecurrencePattern pattern, IEnumerable<IGanttTask> dependencyScope = null)
The starting date and time used to calculate occurrences.
durationTimeSpanThe duration of each occurrence.
patternRecurrencePatternThe finite recurrence pattern to apply.
dependencyScopeIEnumerable<IGanttTask>All project tasks used to check dependencies before scheduled occurrences are removed.
Exceptions: ArgumentNullExceptionpattern is null, or an occurrence must be removed and dependencyScope is null.
duration is negative, or the pattern generates more than 366 occurrences.
The pattern is invalid.
InvalidOperationExceptionA removed occurrence has an unresolved exception or dependency.
Deletes an occurrence while retaining its scheduled start date so it can be restored later.
public void DeleteOccurrence(DateTime originalStart, IEnumerable<IGanttTask> dependencyScope)
The original scheduled start of the occurrence.
dependencyScopeIEnumerable<IGanttTask>All project tasks used to check dependencies before deletion.
Exceptions: ArgumentExceptionThe date does not identify an occurrence in this series.
ArgumentNullExceptiondependencyScope is null while removal must be validated.
The occurrence has an unresolved dependency.
Restores a deleted occurrence and resets its occurrence-specific overrides.
public void RestoreOccurrence(DateTime originalStart)
The original scheduled start of the occurrence.
Exceptions: ArgumentExceptionThe date does not identify an occurrence in this series.
Restores all deleted occurrences and clears all occurrence-specific overrides.
public void RestoreOccurrences()