GoDiagram Web Reference
GetMidOrthoPosition Method

The FromPort's point's X or Y coordinate, depending on the direction
The ToPort's point's X or Y coordinate, depending on the direction
Whether the mid-position is along the vertical axis or horizontal
This method is called by AddOrthoPoints to determine the distance of the middle segment between the two ports.
Syntax
'Declaration
 
Protected Overridable Function GetMidOrthoPosition( _
   ByVal fromPosition As Single, _
   ByVal toPosition As Single, _
   ByVal vertical As Boolean _
) As Single
protected virtual float GetMidOrthoPosition( 
   float fromPosition,
   float toPosition,
   bool vertical
)

Parameters

fromPosition
The FromPort's point's X or Y coordinate, depending on the direction
toPosition
The ToPort's point's X or Y coordinate, depending on the direction
vertical
Whether the mid-position is along the vertical axis or horizontal
Remarks
By default this returns the midpoint between the two coordinates.
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