GoDigram for .NET Framework and .NET Core
Northwoods.Go Namespace / GoGroup Class / InsertAfter Method
In This Topic
    InsertAfter Method
    In This Topic
    Add or move an object to be after an existing child.
    Syntax
    public virtual void InsertAfter( 
       GoObject child,
       GoObject newobj
    )

    Parameters

    child
    newobj
    Remarks
    The children of a group are ordered with respect to each other. This method makes the newobj be in the group at the position after the child, so that the newobj will be painted immediately after the child. If the newobj already belonged to this group, only its position in the list is changed. The newobj must not already be part of a different group or be a top-level object in some layer. The existing child must be either null or a member of this group (but not be the same as newobj). If the child is null, the newobj is added at the end of the list, in front of all other objects in this group.
    See Also