GoDigram for .NET Framework and .NET Core
Northwoods.Go Namespace / GoLayerCollectionObjectEnumerator Structure
Members
In This Topic
    GoLayerCollectionObjectEnumerator Structure
    In This Topic
    Iterate over all of the GoObjects in all of the layers, either forwards or backwards.
    Syntax
    public struct GoLayerCollectionObjectEnumerator : 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 document. In C#: foreach (GoObject obj in aDocument) { . . . } In VB.NET: Dim obj As GoObject For Each obj in aDocument . . . Next

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

    See Also