Spread Windows Forms 17
GrapeCity.Spreadsheet Assembly / GrapeCity.Spreadsheet.Drawing Namespace / WorksheetDrawing Class / GetRectangle Method / GetRectangle(WindowsGraphics,DrawingObject,Double,Double,Boolean) Method
The drawing object.
The horizontal scale unit.
The vertical scale unit.


In This Topic
    GetRectangle(WindowsGraphics,DrawingObject,Double,Double,Boolean) Method
    In This Topic
    Gets the shape's rectangle at 0 degrees and affected by zoom scale.
    Syntax
    'Declaration
     
    
    Public Overloads Function GetRectangle( _
       ByVal graphics As WindowsGraphics, _
       ByVal shape As DrawingObject, _
       ByVal scaleX As Double, _
       ByVal scaleY As Double, _
       ByVal getOriginBounds As Boolean _
    ) As Rectangle
    'Usage
     
    
    Dim instance As WorksheetDrawing
    Dim graphics As WindowsGraphics
    Dim shape As DrawingObject
    Dim scaleX As Double
    Dim scaleY As Double
    Dim getOriginBounds As Boolean
    Dim value As Rectangle
     
    value = instance.GetRectangle(graphics, shape, scaleX, scaleY, getOriginBounds)
    public Rectangle GetRectangle( 
       WindowsGraphics graphics,
       DrawingObject shape,
       double scaleX,
       double scaleY,
       bool getOriginBounds
    )

    Parameters

    graphics
    shape
    The drawing object.
    scaleX
    The horizontal scale unit.
    scaleY
    The vertical scale unit.
    getOriginBounds
    See Also