New to Telerik UI for WPF? Start a free 30-day trial

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:

C#
public sealed class RecurringGanttTask : PropertyChangedBase, INotifyPropertyChanged, IRecurringGanttTask, IGanttTask, IResourceContainer, IStateProvider, ISummary, IHierarchical, IDateRange

Inheritance: objectPropertyChangedBaseRecurringGanttTask

Implements: IDateRangeIGanttTaskIHierarchicalINotifyPropertyChangedIRecurringGanttTaskIResourceContainerIStateProviderISummary...

Inherited Members PropertyChangedBase.PropertyChanged

Constructors

Initializes a recurring task series.

C#
public RecurringGanttTask(string seriesId, DateTime anchor, TimeSpan duration, RecurrencePattern pattern)
Parameters:seriesIdstring

A stable, non-empty identifier for the series.

anchorDateTime

The starting date and time used to calculate occurrences.

durationTimeSpan

The duration of each occurrence.

patternRecurrencePattern

The finite recurrence pattern for the series.

Exceptions: ArgumentException

seriesId is null, empty, or consists only of white-space characters, or pattern is invalid.

ArgumentNullException

pattern is null.

ArgumentOutOfRangeException

duration is negative, or the pattern generates more than 366 occurrences.

Properties

Gets the starting date and time used to calculate occurrences.

C#
public DateTime Anchor { get; }

Implements: IRecurringGanttTask.Anchor

Gets the occurrences as child tasks.

C#
public ReadOnlyObservableCollection<IGanttTask> Children { get; }

Gets or sets the deadline applied to occurrences that do not override it.

C#
public DateTime? Deadline { get; set; }

Implements: IGanttTask.Deadline

Gets the original start dates of occurrences deleted from the series.

C#
public IEnumerable<DateTime> DeletedOccurrenceStarts { get; }

Gets or sets the description applied to occurrences that do not override it.

C#
public string Description { get; set; }

Implements: IGanttTask.Description

Gets the time span between the earliest start and latest end of the included occurrences. Setting this property is not supported.

C#
public TimeSpan Duration { get; set; }

Implements: IGanttTask.Duration

Gets the latest end time of the included occurrences. Setting this property is not supported.

C#
public DateTime End { get; set; }

Implements: IDateRange.End

Gets the included occurrences with occurrence-specific overrides.

C#
public IReadOnlyList<GanttTaskOccurrence> Exceptions { get; }

Gets a value indicating that this series acts as a summary task.

C#
public bool IsSummary { get; }

Implements: ISummary.IsSummary

Gets the duration of each occurrence.

C#
public TimeSpan OccurrenceDuration { get; }

Implements: IRecurringGanttTask.OccurrenceDuration

Gets the occurrences currently included in the series.

C#
public IReadOnlyList<GanttTaskOccurrence> Occurrences { get; }

Implements: IRecurringGanttTask.Occurrences

Gets or sets the progress applied to occurrences that do not override it.

C#
public double Progress { get; set; }

Implements: IGanttTask.Progress

Gets a copy of the recurrence pattern used by the series.

C#
public RecurrencePattern RecurrencePattern { get; }

Implements: IRecurringGanttTask.RecurrencePattern

Gets the resources assigned to the series and its occurrences.

C#
public IList<IResource> Resources { get; }

Gets the stable identifier of the series.

C#
public string SeriesId { get; }

Implements: IRecurringGanttTask.SeriesId

Gets the earliest start time of the included occurrences. Setting this property is not supported.

C#
public DateTime Start { get; set; }

Implements: IDateRange.Start

Gets or sets the title applied to occurrences that do not override it.

C#
public string Title { get; set; }

Implements: IGanttTask.Title

Methods

Replaces the recurrence definition and regenerates the series occurrences.

C#
public void ApplyRecurrence(DateTime anchor, TimeSpan duration, RecurrencePattern pattern, IEnumerable<IGanttTask> dependencyScope = null)
Parameters:anchorDateTime

The starting date and time used to calculate occurrences.

durationTimeSpan

The duration of each occurrence.

patternRecurrencePattern

The finite recurrence pattern to apply.

dependencyScopeIEnumerable<IGanttTask>

All project tasks used to check dependencies before scheduled occurrences are removed.

Exceptions: ArgumentNullException

pattern is null, or an occurrence must be removed and dependencyScope is null.

ArgumentOutOfRangeException

duration is negative, or the pattern generates more than 366 occurrences.

ArgumentException

The pattern is invalid.

InvalidOperationException

A removed occurrence has an unresolved exception or dependency.

Deletes an occurrence while retaining its scheduled start date so it can be restored later.

C#
public void DeleteOccurrence(DateTime originalStart, IEnumerable<IGanttTask> dependencyScope)
Parameters:originalStartDateTime

The original scheduled start of the occurrence.

dependencyScopeIEnumerable<IGanttTask>

All project tasks used to check dependencies before deletion.

Exceptions: ArgumentException

The date does not identify an occurrence in this series.

ArgumentNullException

dependencyScope is null while removal must be validated.

InvalidOperationException

The occurrence has an unresolved dependency.

Restores a deleted occurrence and resets its occurrence-specific overrides.

C#
public void RestoreOccurrence(DateTime originalStart)
Parameters:originalStartDateTime

The original scheduled start of the occurrence.

Exceptions: ArgumentException

The date does not identify an occurrence in this series.

Restores all deleted occurrences and clears all occurrence-specific overrides.

C#
public void RestoreOccurrences()