GoDiagram Web Reference
GoLayerEnumerator Structure
Members 

Iterate over the GoObjects that are in this layer.
Syntax
'Declaration
 
Public Structure GoLayerEnumerator 
   Inherits System.ValueType
public struct GoLayerEnumerator : 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 layer. In C#:
            foreach (GoObject obj in aLayer) {
              . . .
            }
            
In VB.NET:
            Dim obj As GoObject
            For Each obj in aLayer
              . . .
            Next
            

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

Inheritance Hierarchy

System.Object
   System.ValueType
      Northwoods.GoWeb.GoLayerEnumerator

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

GoLayerEnumerator Members
Northwoods.GoWeb Namespace

 

 


© 2013. Northwoods Software Corporation. All Rights Reserved.

Send Feedback