DataField.Next property
Next
DataField Next { get; }
A Project stores a list of DataField objects. You can use this method to iterate through the list. To retrieve the first DataField in the Project see Project.FirstDataField
Returns
The next DataField object in the list or null
Sample: Iterate DataFields in a Stand-Alone FormLayout
// Retrieve the global Project
// A stand-alone FormLayout contains only the global Project, the global Project holds all DataField definitions
Project project = repository.GlobalProject;
// Retrieve the first DataField
DataField datafield = project.FirstDataField;
while (datafield != null)
{
// Your code follows
Console.WriteLine (datafield.Name);
// Get the next DataField
datafield = datafield.Next;
}