Spread Windows Forms 15.0
GrapeCity.Spreadsheet Assembly / GrapeCity.Spreadsheet.Drawing Namespace / DrawingObject Class / CalculateRect Method


In This Topic
    CalculateRect Method (DrawingObject)
    In This Topic
    Calculates the client rectangle of a child shape inside the specified rectangle.
    Syntax
    'Declaration
     
    
    Public Overridable Function CalculateRect( _
       ByVal childDrawingObj As DrawingObject, _
       ByVal rect As Rectangle _
    ) As Rectangle
    'Usage
     
    
    Dim instance As DrawingObject
    Dim childDrawingObj As DrawingObject
    Dim rect As Rectangle
    Dim value As Rectangle
     
    value = instance.CalculateRect(childDrawingObj, rect)
    public virtual Rectangle CalculateRect( 
       DrawingObject childDrawingObj,
       Rectangle rect
    )

    Parameters

    childDrawingObj
    rect
    See Also