GoDigram for .NET Framework and .NET Core
Northwoods.Go Namespace / GoPort Class / PortObject Property
In This Topic
    PortObject Property
    In This Topic
    Gets or sets the GoObject that may stand in for this port.
    Syntax
    [Description("The GoObject that may take this port's place and appearance or shape.")]
    public virtual GoObject PortObject {get; set;}

    Property Value

    The initial value is null.
    Remarks
    When painting this port, if the Style is GoPortStyle.Object, then the painting is delegated to the value of this property, which should be an object not owned by any layer or group. GetNearestIntersectionPoint delegates to the value of this property when the Style is not GoPortStyle.Object and the port object does belong to a layer. The value must not be set to another port. If the value changes, the setter will also call LinksOnPortChanged to notify all connected links about the change.
    See Also