Version

Task Class Members

The following tables list the members exposed by Task.

Public Fields
 NameDescription
Public FieldPercentFormatReturns the string format used to format values that represent percentages. Note that unlike the 'p' format specifier, this format does not multiply the value being formatted by 100.  
Protected Fields
 NameDescription
Protected FieldtagValue (Inherited from Infragistics.Shared.SubObjectBase)
Public Properties
 NameDescription
Public PropertyBindingListIndexReturns the ordinal position of the list object corresponding to this Task in the data source to which the Tasks collection is bound, or -1 if the Tasks collection is not bound.  
Public PropertyBindingListObjectReturns the list object corresponding to this Task in the data source to which the Tasks collection is bound, or null if the Tasks collection is not bound.  
Public PropertyCompleteThroughReturns the date/time through which this Task is complete.  
Public PropertyConstraintReturns or sets the constraint for this task.  
Public PropertyConstraintDateTimeReturns or sets the constraining date/time for this task.  
Public PropertyDeadlineReturns or sets the deadline for this task.  
Public PropertyDependenciesReturns a collection of TaskDependency objects which define the tasks on which this task is dependent, as well as the nature of the dependency.  
Public PropertyDisposed (Inherited from Infragistics.Shared.DisposableObject)
Public PropertyDurationReturns or sets the amount of time spanned by the task.  
Public PropertyDurationResolvedReturns the resolved value of the Duration property.  
Public PropertyEndDateTimeReturns or sets the DateTime at which the task ends.  
Public PropertyEndDateTimeResolvedReturns the resolved value of the EndDateTime property.  
Public PropertyExpandedReturns or sets a boolean value indicating whether this task is expanded. Applicable only when the IsSummary property returns true.  
Public PropertyGridSettingsReturns a Infragistics.Win.UltraWinGanttView.TaskGridSettings object which determines grid-specific properties of the task, such as the appearance of the row and the settings for the cells.  
Public PropertyIdReturns a globally unique identifier which identifies this instance.  
Public PropertyIsRootReturns whether this task is a root-level task.  
Public PropertyIsSummaryReturns whether this task is considered a summary of other tasks, i.e., whether this task contains subtasks.  
Public PropertyLevelReturns a zero-based integer which defines the level at which this Task resides within the hierarchy, where zero represents a root task. If the task does not belong to any collection, this property returns -1.  
Public PropertyMilestoneReturns or sets a boolean value indicating whether the task marks a milestone in the associated project.  
Public PropertyMilestoneResolvedReturns the resolved value of the Milestone property.  
Public PropertyNameReturns or sets the name of the task.  
Public PropertyNotesReturns or sets the notes to be associated with the task.  
Public PropertyParentReturns the Task whose Tasks collection contains this task, or null if this is a root-level task  
Public PropertyPercentCompleteReturns or sets a floating-point value indicating the percent of completion for the task, with the value zero representing a task that has not yet been started, and the value of 100 representing a task that has been fully completed.  
Public PropertyProjectReturns or sets the associated Project, or null if this task is not specifically associated with a project.  
Public PropertyProjectKeyReturns the key of the associated Project, or an empty string if this task is not specifically associated with a project.  
Public PropertyResourcesReturns a collection of Owner objects which represent the entities available to assist in the completion of a task.  
Public PropertyRowHeightReturns or sets the height of the row which represents this Task in the user interface.  
Public PropertyRowNumberReturns or sets a one-based integer value which describes this Task's ordinal position within the flattened out list of all tasks that belong to the same project.  
Public PropertyStartDateTimeReturns or sets the DateTime at which the task begins.  
Public PropertyTag (Inherited from Infragistics.Shared.SubObjectBase)
Public PropertyTasksReturns a collection of Task objects which represent the immediate children of this task.  
Public PropertyTaskSettingsReturns a TaskSettings object which determines whether the user can edit or delete the task.  
Public PropertyTimelineSettingsReturns a Infragistics.Win.UltraWinGanttView.TimelineSettings object which determines Timeline-specific properties of the task, such as the appearance and behavior of the bars and whether dragging is allowed.  
Protected Properties
 NameDescription
Protected PropertySubObjectPropChangeHandler (Inherited from Infragistics.Shared.SubObjectBase)
Public Methods
 NameDescription
Public MethodCanIndentDetermines if this Task from the Tasks collection can be added to the Tasks collection of its previous sibling.  
Public MethodCanOutdentDetermines if this Task from the Tasks collection can be a sibling of its parent task.  
Public MethodCollapseAllSets the Expanded property to false for all members of this collection and their descendants.  
Public MethodCreateObjRefCreates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Inherited from System.MarshalByRefObject)
Public MethodDispose (Inherited from Infragistics.Shared.DisposableObject)
Public MethodEqualsOverloaded. Returns whether the specified Task is the same logical instance as this task.  
Public MethodExpandAllSets the Expanded property to true for all members of this collection and their descendants.  
Public MethodExpandAllAncestorsExpands all ancestors of this Task to ensure that it is able to be made visible.  
Public Methodstatic (Shared in Visual Basic)FromBytesDeserializes a single Task object from the specified stream.  
Public MethodGetCustomPropertyReturns the value of the property having the given name  
Public MethodGetDurationReturns the duration of this Task, optionally adjusting the returned value to remove non-working hours.  
Public MethodGetLifetimeServiceRetrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from System.MarshalByRefObject)
Public MethodIndentRemoves this Task from the Tasks collection to which it currently belongs, and adds it to the Tasks collection of its former previous sibling.  
Public MethodInitializeLifetimeServiceObtains a lifetime service object to control the lifetime policy for this instance. (Inherited from System.MarshalByRefObject)
Public MethodIsAncestorOfReturns whether this Task is an ancestor of the specified one.  
Public MethodIsDescendantOfReturns whether this Task is a descendant of the specified one.  
Public MethodNotifyPropChangeOverloaded.  (Inherited from Infragistics.Shared.SubObjectBase)
Public MethodOutdentRemoves this Task from the Tasks collection to which it currently belongs, and makes it a sibling of its former parent task.  
Public MethodResetRestores the properties of this object to their default values.  
Public MethodResetCustomPropertiesResets all custom properties on the task to their default values.  
Public MethodResetCustomPropertyResets a custom property on the task to it's default value.  
Public MethodResetGridSettingsResets the GridSettings property to its default value.  
Public MethodResetTaskSettingsResets the TaskSettings property to its default value.  
Public MethodResetTimelineSettingsResets the TimelineSettings property to its default value.  
Public MethodSaveOverloaded. Returns a byte array containing the serialized object graph of this Task.  
Public MethodSetCustomPropertySets a custom property on the task.  
Public MethodSetDurationSets the value of the Duration property.  
Public MethodSetSummaryDurationFormatSets the format used to depict this task's Duration when it is a summary task.  
Public MethodShouldSerializeReturns a boolean value indicating whether this object requires serialization.  
Public MethodShouldSerializeCustomPropertiesReturns true if any custom property has been set to something other than the default; otherwise false.  
Public MethodShouldSerializeCustomPropertyReturns true if the custom property has been set to something other than the default; otherwise false.  
Public MethodShouldSerializeTag (Inherited from Infragistics.Shared.SubObjectBase)
Public MethodToStringReturns the string representation of this object.  
Public MethodVerifyNotDisposed (Inherited from Infragistics.Shared.DisposableObject)
Protected Methods
 NameDescription
Protected MethodDeserializeTagOverloaded.  (Inherited from Infragistics.Shared.SubObjectBase)
Protected MethodGetObjectDataSerialization helper method.  
Protected MethodInitializeTag (Inherited from Infragistics.Shared.SubObjectBase)
Protected MethodMemberwiseCloneOverloaded. Creates a shallow copy of the current System.MarshalByRefObject object. (Inherited from System.MarshalByRefObject)
Protected MethodOnDisposeOverridden. Releases resources used by this object.  
Protected MethodOnObjectPropChangedOverridden. Called when a property of this object changes.  
Protected MethodOnSubObjectPropChangedOverridden. Called when a property value changes on a sub-object.  
Protected MethodResetAllowedUIActionsRestores the AllowedUIActions property to its default value.  
Protected MethodResetConstraintDateTimeRestores the Constraint property to its default value.  
Protected MethodResetDeadlineRestores the Deadline property to its default value.  
Protected MethodResetDependenciesRestores the Dependencies property to its default value.  
Protected MethodResetDurationRestores the Duration property to its default value.  
Protected MethodResetExpandedRestores the Expanded property to its default value.  
Protected MethodResetMilestoneRestores the Milestone property to its default value.  
Protected MethodResetNameRestores the Name property to its default value.  
Protected MethodResetNotesRestores the Notes property to its default value.  
Protected MethodResetPercentCompleteRestores the PercentComplete property to its default value.  
Protected MethodResetResourcesRestores the Resources property to its default value.  
Protected MethodResetRowHeightRestores the RowHeight property to its default value.  
Protected MethodResetStartDateTimeRestores the StartDateTime property to its default value.  
Protected MethodResetTag (Inherited from Infragistics.Shared.SubObjectBase)
Protected MethodResetTasksRestores the Tasks property to its default value.  
Protected MethodSerializeTagOverloaded.  (Inherited from Infragistics.Shared.SubObjectBase)
Public Events
 NameDescription
Public EventSubObjectDisposed (Inherited from Infragistics.Shared.SubObjectBase)
Public EventSubObjectPropChanged (Inherited from Infragistics.Shared.SubObjectBase)
See Also