ResourceUsageViewFieldCollection.GetEnumerator
ResourceUsageViewFieldCollection.GetEnumerator method
Returns an enumerator for this collection.
public IEnumerator<ResourceUsageViewField> GetEnumerator()
Return Value
an enumerator for this collection.
Examples
Shows how to work field collection of a ResourceUsageView instance.
var project = new Project(DataDir + "ResourceUsageView.mpp");
var view = (ResourceUsageView)project.Views.ToList()[2];
foreach (var field in view.FieldCollection)
{
Console.WriteLine("Field: " + field);
}
// one can transform collection into a list of ResourceUsageViewField
IList<ResourceUsageViewField> fields = view.FieldCollection.ToList();
foreach (var field in fields)
{
Console.WriteLine("Field (from the list): " + field);
}
See Also
- enum ResourceUsageViewField
- class ResourceUsageViewFieldCollection
- namespace Aspose.Tasks
- assembly Aspose.Tasks