Spread Windows Forms 15.0
GrapeCity.Spreadsheet Assembly / GrapeCity.Spreadsheet.Drawing Namespace / WorksheetDrawing Class / GetDistance Method
The AnchorPoint value indicates the anchor point.
The AnchorPoint value indicates the target point.
The horizontal distance of 2 AnchorPoint points.
The vertical distance of 2 AnchorPoint points.
The horizontal scale.
The vertical scale.


In This Topic
    GetDistance Method
    In This Topic
    Gets the distances (in horizontal and vertical) from the anchorPoint position to the targetPoint position.
    Syntax
    'Declaration
     
    
    Public Sub GetDistance( _
       ByRef anchorPoint As AnchorPoint, _
       ByRef targetPoint As AnchorPoint, _
       ByRef width As Double, _
       ByRef height As Double, _
       Optional ByVal scaleX As Double, _
       Optional ByVal scaleY 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 anchorPoint,
       ref AnchorPoint targetPoint,
       out double width,
       out double height,
       double scaleX,
       double scaleY
    )

    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