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


In This Topic
    GetRectangle(WindowsGraphics,DrawingObject,Boolean) Method
    In This Topic
    Gets the virtual paint rectangle of the specified drawing object.
    Syntax
    'Declaration
     
    
    Public Overloads Function GetRectangle( _
       ByVal graphics As WindowsGraphics, _
       ByVal drawingObject As DrawingObject, _
       Optional ByVal getPaintingRect As Boolean _
    ) As Rectangle
    'Usage
     
    
    Dim instance As WorksheetDrawing
    Dim graphics As WindowsGraphics
    Dim drawingObject As DrawingObject
    Dim getPaintingRect As Boolean
    Dim value As Rectangle
     
    value = instance.GetRectangle(graphics, drawingObject, getPaintingRect)
    public Rectangle GetRectangle( 
       WindowsGraphics graphics,
       DrawingObject drawingObject,
       bool getPaintingRect
    )

    Parameters

    graphics
    drawingObject
    The drawing object.
    getPaintingRect

    Return Value

    A GrapeCity.Drawing.Rectangle value represents the painting rectangle of the drawing object.
    See Also