Spread Windows Forms 17
GrapeCity.Spreadsheet Assembly / GrapeCity.Spreadsheet.Drawing Namespace / Shape Class / CalculateRect Method / CalculateRect(WindowsGraphics,DrawingObject,Rectangle,Double) Method


In This Topic
    CalculateRect(WindowsGraphics,DrawingObject,Rectangle,Double) Method
    In This Topic
    Calculates the client rectangle of a child shape inside the specified rectangle.
    Syntax
    'Declaration
     
    
    Public Overloads Overrides Function CalculateRect( _
       ByVal graphics As WindowsGraphics, _
       ByVal childDrawingObj As DrawingObject, _
       ByVal rect As Rectangle, _
       Optional ByVal zoomFactor As Double _
    ) As Rectangle
    'Usage
     
    
    Dim instance As Shape
    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)
    public override Rectangle CalculateRect( 
       WindowsGraphics graphics,
       DrawingObject childDrawingObj,
       Rectangle rect,
       double zoomFactor
    )

    Parameters

    graphics
    childDrawingObj
    rect
    zoomFactor
    See Also