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


In This Topic
    GetDisplayRectangle(WindowsGraphics,DrawingObject) Method
    In This Topic
    Gets the preferred display rectangle of the specified drawing object.
    Syntax
    'Declaration
     
    
    Public Overloads Overridable Function GetDisplayRectangle( _
       ByVal graphics As WindowsGraphics, _
       ByVal drawingObject As DrawingObject _
    ) As Rectangle
    'Usage
     
    
    Dim instance As WorksheetDrawing
    Dim graphics As WindowsGraphics
    Dim drawingObject As DrawingObject
    Dim value As Rectangle
     
    value = instance.GetDisplayRectangle(graphics, drawingObject)
    public virtual Rectangle GetDisplayRectangle( 
       WindowsGraphics graphics,
       DrawingObject drawingObject
    )

    Parameters

    graphics
    drawingObject
    The drawing object.

    Return Value

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