GoDigram for .NET Framework and .NET Core
Northwoods.Go Namespace / GoPort Class / Paint Method
In This Topic
    Paint Method (GoPort)
    In This Topic
    Draw a port as either a simple shape using a Pen and Brush, as an arbitrary object, or not at all.
    Syntax
    public override void Paint( 
       Graphics g,
       GoView view
    )

    Parameters

    g
    view
    Remarks
    By default this method uses the Style property to determine the general shape of the port. When the Style is GoPortStyle.GoPortStyle.None, nothing is painted. When the Style is GoPortStyle.GoPortStyle.Object and the PortObject is an object that does not belong to any GoLayer, we set the PortObject's Bounds property to this port's bounds before painting that PortObject. If the Style is not GoPortStyle.Object, or if the PortObject belongs to a layer (typically because it belongs to this port's node or it is the node itself), then the PortObject is ignored here -- it will be painted by the normal mechanisms and not specially for this port. This ignores the GoObject.Shadowed property.
    See Also