[]
Represents a task in the project.
public class Task : BaseTask, INotifyPropertyChanged, ICloneable, IDisposable, IDataErrorInfo, ICustomTypeDescriptor, ITypeDescriptorContext, IServiceProvider
| Name | Description |
|---|---|
| Task() | Initializes a new instance of a Task. |
| Name | Description |
|---|---|
| BarStyles | Gets the collection of bar styles redefined for the given task. |
| Calendar | Gets or sets a custom calendar for the task. |
| CalendarID | Gets or sets the ID of the custom calendar. |
| ConstraintDate | Gets or sets the start (finish) date for a start (finish) date constraint. |
| ConstraintType | Gets or sets the type of constraint for scheduling a task. |
| Deadline | Gets or sets the task's deadline. |
| Duration | Gets or sets the task duration. Duration units are specified by the DurationUnits property. |
| DurationUnits | Gets or sets the time units for the task duration. |
| ErrorMessage | Gets or sets the error message displayed for the task. |
| FieldStyles | Gets the collection of field styles for the given task. |
| Finish | Gets or sets (for manual tasks only) the task finish date and time. |
| HideBar | Gets or sets a value indicating if the task bar shouldn't appear on the chart. |
| ID | Gets or sets the object's auto-generated ID. |
| Inactive | Gets or sets a value indicating if the task is inactive. |
| Initialized | Indicates whether the Task contains non-empty fields. |
| IsCollapsed | Gets or set the task is collapsed or not. |
| this[string] | Gets the error message for a specific column of the task. |
| Mode | Gets or sets how the task is scheduled (manually or automatically). |
| Name | Gets or sets the task name. |
| NextID | Gets the next object's ID in collection. |
| Notes | Gets or sets notes associated with this task. |
| OutlineLevel | Gets the outline level of the task. |
| OutlineParent | Gets or sets the the outline parent task. |
| OutlineParentID | Gets or sets the outline parent identifier. |
| Parts | Gets parts of the task. |
| PercentComplete | Gets or sets the completion stage of this task. The value must be between 0 and 1. |
| Predecessors | Gets a list of tasks that must be finished/started before this task can start/finish. |
| ReflectOnGroup | Gets or sets a value indicating whether the task is reflected on group bar. |
| ReflectOnSummary | Gets or sets a value indicating whether the task is reflected on summary bar. |
| ResourceNames | Gets a string with the list of resources used by this task. |
| ResourceRefs | Gets a list of resources used by this task. |
| Start | Gets or sets (for manual tasks only) the task start date and time. |
| Successors | Gets the task successors. |
| Summary | Gets or sets the task in summary task or not. |
| Name | Description |
|---|---|
| AddChild(Task) | Adds a child to outline hierarchy. |
| Clone() | Creates a new object that is a copy of the current instance. |
| Dispose() | Clean up any resources being used. |
| GetChildren() | Retrieves outline children. |
| GetDurationInDays() | Returns the task duration, in days. |
| GetFieldValue(string, object) | Gets the value of a custom field. |
| RemoveChild(Task) | Removes a child from the outline hierarchy. |
| ResetConstraintDate() | Resets the value of the ConstraintDate property. |
| ResetConstraintType() | Resets the value of the ConstraintType property. |
| ResetDuration() | Resets the value of the Duration property. |
| ResetFinish() | Resets the value of the Finish property. |
| ResetStart() | Resets the value of the Start property. |
| SetColumnError(string, string) | Sets the error message displayed for a specific column of the task. |
| SetFieldValue(string, object) | Sets the value to a custom field. |
| SplitTask(DateTime, double) | Splits the task. |
| SplitTask(double[]) | Splits the task. |