GoDiagram Web Reference
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
Adjust all of the existing points in this link's stroke in an inclusive range according to new first and last stroke points.
Syntax
'Declaration
 
Protected Overridable Function AdjustPoints( _
   ByVal startIndex As Integer, _
   ByVal newFromPoint As PointF, _
   ByVal endIndex As Integer, _
   ByVal newToPoint As PointF _
) As Boolean
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.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

GoLink Class
GoLink Members

 

 


© 2013. Northwoods Software Corporation. All Rights Reserved.

Send Feedback