GoDigram for .NET Framework and .NET Core
Northwoods.Go Namespace / GoPort Class / OnLayerChanged Method
In This Topic
    OnLayerChanged Method (GoPort)
    In This Topic
    When a port is removed from a layer, we remove all of the links connected to the port.
    Syntax
    protected override void OnLayerChanged( 
       GoLayer oldlayer,
       GoLayer newlayer,
       GoObject mainObj
    )

    Parameters

    oldlayer
    newlayer
    mainObj
    Remarks
    This does not remove any links that are part of the mainObj. Nor does it remove any links that belong to a view, if this port is part of a document. And conversely, it does not remove any links that belong to a document if this port is part of a view. Finally, this calls ClearLinks only when ClearsLinksWhenRemoved is true.
    See Also