GoDigram for .NET Framework and .NET Core
Northwoods.Go Namespace / GoObject Class / Remove Method
Example
In This Topic
    Remove Method (GoObject)
    In This Topic
    This convenience method just removes this object from its container, if there is any.
    Syntax
    public void Remove()
    Example
    This is implemented as: Removing an object from a layer also removes it from its parent group, if any.
    GoLayer layer = this.Layer;
    if (layer != null) {
      layer.Remove(this);
    } else {
      GoGroup parent = this.Parent;
      if (parent != null)
        parent.Remove(this);
    }
    See Also