GoDigram for .NET Framework and .NET Core
Northwoods.Go Namespace / GoLink Class / AdjustPoints Method
the zero-based index of the first point to be changed, to be the value of newFromPoint
the zero-based index of the last point to be changed, to be the value of newToPoint
In This Topic
    AdjustPoints Method
    In This Topic
    Adjust all of the existing points in this link's stroke in an inclusive range according to new first and last stroke points.
    Syntax
    protected virtual bool AdjustPoints( 
       int startIndex,
       PointF newFromPoint,
       int endIndex,
       PointF newToPoint
    )

    Parameters

    startIndex
    the zero-based index of the first point to be changed, to be the value of newFromPoint
    newFromPoint
    endIndex
    the zero-based index of the last point to be changed, to be the value of newToPoint
    newToPoint
    Remarks

    This is primarily useful to help maintain intermediate inflection points in a link when one or both ports moves. By default this just calls RescalePoints, StretchPoints, or ModifyEndPoints. This method is not called when there are no existing points to be adjusted or when AdjustingStyle is GoLinkAdjustingStyle.Calculate.

    When this link is Orthogonal, an AdjustingStyle of GoLinkAdjustingStyle.Scale will just return false to result in the standard orthogonal path. An AdjustingStyle of GoLinkAdjustingStyle.Stretch for an orthogonal link is treated as if it were GoLinkAdjustingStyle.End.

    See Also