Class
ProjectTaskCollection
OfficeIMO.Project
Immediate tasks in an outline, with lookup by stable UID across the document.
Inheritance
- object
- ProjectTaskCollection
Usage
Explore 2 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 2
- Property ProjectDocument.Tasks
- Property ProjectTask.Children
Methods
public ProjectTask Add(string name) #Appends a task with a new stable UID.
Parameters
- name string
Returns
ProjectTaskpublic ProjectTask AddSummary(string name) #Appends a summary, which can contain child tasks.
Parameters
- name string
Returns
ProjectTaskpublic ProjectTask GetByUid(int uid) #Finds a task by UID in the whole document, not by row number.
Parameters
- uid int
Returns
ProjectTaskpublic IEnumerator<ProjectTask> GetEnumerator() #Returns an enumerator that iterates through the collection.
public bool Remove(ProjectTask task, ProjectRemovalMode mode = RejectIfReferenced) #Removes an immediate task with an explicit relationship policy.
Parameters
- task OfficeIMO.Project.ProjectTask
- mode OfficeIMO.Project.ProjectRemovalMode = RejectIfReferenced
Returns
boolInherited Methods
Properties
public ProjectTask this[int index] { get; } #Immediate task by zero-based position.
Parameters
- index int