In This Topic
Gets the distances (in horizontal and vertical) from the position to the position.
Syntax
'Declaration
Public Sub GetDistance( _
ByRef As AnchorPoint, _
ByRef As AnchorPoint, _
ByRef As Double, _
ByRef As Double, _
Optional ByVal As Double, _
Optional ByVal As Double _
)
'Usage
Dim instance As WorksheetDrawing
Dim anchorPoint As AnchorPoint
Dim targetPoint As AnchorPoint
Dim width As Double
Dim height As Double
Dim scaleX As Double
Dim scaleY As Double
instance.GetDistance(anchorPoint, targetPoint, width, height, scaleX, scaleY)
public void GetDistance(
ref AnchorPoint ,
ref AnchorPoint ,
out double ,
out double ,
double ,
double
)
Parameters
- anchorPoint
- The AnchorPoint value indicates the anchor point.
- targetPoint
- The AnchorPoint value indicates the target point.
- width
- The horizontal distance of 2 AnchorPoint points.
- height
- The vertical distance of 2 AnchorPoint points.
- scaleX
- The horizontal scale.
- scaleY
- The vertical scale.
See Also