Spread Windows Forms 15.0
GrapeCity.Spreadsheet Assembly / GrapeCity.Spreadsheet.FormControls Namespace / ControlShape Class / CalculateRect Method / CalculateRect(DrawingObject,Rectangle) Method
The child drawing object.
The rect.


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

    Parameters

    childDrawingObj
    The child drawing object.
    rect
    The rect.

    Return Value

    Rectangle.
    See Also