Spread Windows Forms 17
GrapeCity.Spreadsheet Assembly / GrapeCity.Spreadsheet.Drawing Namespace / ICompositeShape Interface / CalculateRect Method
The GrapeCity.Native.WindowsGraphics
The DrawingObject that will be calculated.
The rectangle of the parent of the childDrawingObj.
The zoom factor.


In This Topic
    CalculateRect Method (ICompositeShape)
    In This Topic
    Calculates the client rectangle of a child shape inside the specified rectangle.
    Syntax
    'Declaration
     
    
    Function CalculateRect( _
       ByVal graphics As WindowsGraphics, _
       ByVal childDrawingObj As DrawingObject, _
       ByVal rect As Rectangle, _
       ByVal zoomFactor As Double _
    ) As Rectangle
    'Usage
     
    
    Dim instance As ICompositeShape
    Dim graphics As WindowsGraphics
    Dim childDrawingObj As DrawingObject
    Dim rect As Rectangle
    Dim zoomFactor As Double
    Dim value As Rectangle
     
    value = instance.CalculateRect(graphics, childDrawingObj, rect, zoomFactor)

    Parameters

    graphics
    The GrapeCity.Native.WindowsGraphics
    childDrawingObj
    The DrawingObject that will be calculated.
    rect
    The rectangle of the parent of the childDrawingObj.
    zoomFactor
    The zoom factor.
    See Also