GoDigram for .NET Framework and .NET Core
Northwoods.Go Namespace / GoView Class / PortGravity Property
In This Topic
    PortGravity Property
    In This Topic
    Gets or sets the distance at which potential links will snap to valid ports.
    Syntax
    [Category("Behavior")]
    [DefaultValue(100)]
    [Description("The distance at which potential links will snap to valid ports.")]
    public virtual float PortGravity {get; set;}

    Property Value

    The float value must be positive, indicating the document coordinate distance from the mouse to the prospective port. The default value is 100.0f.
    Remarks
    The GoToolLinking tool uses this property to decide when the user's drag of a new link or relink is "close enough" to a valid port that the tool should draw the proposed link directly to that port.
    See Also