TaskUsageViewFieldCollection.GetEnumerator
TaskUsageViewFieldCollection.GetEnumerator method
Returns an enumerator for this collection.
public IEnumerator<TaskUsageViewField> GetEnumerator()
Return Value
an enumerator for 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
- class TaskUsageViewFieldCollection
- namespace Aspose.Tasks
- assembly Aspose.Tasks