Class TaskUsageViewFieldCollection
Contents
[
Hide
]TaskUsageViewFieldCollection class
Represents a collection of TaskUsageViewField
values.
public class TaskUsageViewFieldCollection : IList<TaskUsageViewField>
Methods
Name | Description |
---|---|
GetEnumerator() | Returns an enumerator for this collection. |
ToList() | Returns a list which contains all items from this collection. |
Examples
Shows how to work field collection of a TaskUsageView instance.
var project = new Project(DataDir + "TaskUsageView.mpp");
var view = (TaskUsageView)project.Views.ToList()[2];
foreach (var field in view.FieldCollection)
{
Console.WriteLine("Field: " + field);
}
// one can transform collection into a list of TaskUsageViewField
IList<TaskUsageViewField> fields = view.FieldCollection.ToList();
foreach (var field in fields)
{
Console.WriteLine("Field (from the list): " + field);
}
See Also
- enum TaskUsageViewField
- namespace Aspose.Tasks
- assembly Aspose.Tasks