TaskUsageViewFieldCollection Class

Represents a collection of TaskUsageViewField values.
Inheritance Hierarchy
SystemObject
  Aspose.TasksTaskUsageViewFieldCollection

Namespace:  Aspose.Tasks
Assembly:  Aspose.Tasks (in Aspose.Tasks.dll) Version: 21.10
Syntax
public class TaskUsageViewFieldCollection : IList<TaskUsageViewField>, 
	ICollection<TaskUsageViewField>, IEnumerable<TaskUsageViewField>, IEnumerable

The TaskUsageViewFieldCollection type exposes the following members.

Methods
  NameDescription
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodCode exampleGetEnumerator
Returns an enumerator for this collection.
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodCode exampleToList
Returns a list which contains all items from this collection.
Public methodToString (Inherited from Object.)
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