GoDigram for .NET Framework and .NET Core
Northwoods.Go Namespace / GoGroupEnumerator Structure
Members
In This Topic
    GoGroupEnumerator Structure
    In This Topic
    Iterate over the immediate child objects of this group, either forwards or backwards.
    Syntax
    public struct GoGroupEnumerator : System.ValueType 
    Remarks
    Although this structure is public, it is rarely used explicitly. Instead you should use the foreach (or For Each) construct to iterate through the children of a group. In C#:
    
                foreach (GoObject obj in aGroup) {
                  . . .
                }
                
    In VB.NET:
    
                Dim obj As GoObject
                For Each obj in aGroup
                  . . .
                Next
                
    Also, since GoGroup implements the IList interface, you can refer to the items of the group by a zero-based index.

    Remember that you must not modify the group collection, by adding, removing, or re-ordering the child objects, while you are iterating over the children. This structure type does not support comparison for equality.

    See Also