GoDiagram Web Reference
GoCollectionEnumerator Structure
Members 

Iterate over all of the GoObjects in this collection, either forwards or backwards.
Syntax
'Declaration
 
Public Structure GoCollectionEnumerator 
   Inherits System.ValueType
public struct GoCollectionEnumerator : 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 objects that are part of a collection. In C#:
            foreach (GoObject obj in aGoCollection) {
              . . .
            }
            
In VB.NET:
            Dim obj As GoObject
            For Each obj in aGoCollection
              . . .
            Next
            

Remember that you must not modify the collection, by adding or removing any child objects, while you are iterating over the children. If you do, you may get an InvalidOperationException. This structure type does not support comparison for equality.

Inheritance Hierarchy

System.Object
   System.ValueType
      Northwoods.GoWeb.GoCollectionEnumerator

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

GoCollectionEnumerator Members
Northwoods.GoWeb Namespace

 

 


© 2013. Northwoods Software Corporation. All Rights Reserved.

Send Feedback