Spread Windows Forms 17
GrapeCity.Spreadsheet Assembly / GrapeCity.Spreadsheet.Drawing Namespace / WorksheetDrawing Class / GetRectangle Method / GetRectangle(AnchorPoint,AnchorPoint,AnchorPoint,Double,Double) Method


In This Topic
    GetRectangle(AnchorPoint,AnchorPoint,AnchorPoint,Double,Double) Method
    In This Topic
    Gets the paint rectangle of the specified drawing object.
    Syntax
    'Declaration
     
    
    Public Overloads Function GetRectangle( _
       ByRef startAnchorPoint As AnchorPoint, _
       ByRef endAnchorPoint As AnchorPoint, _
       ByRef anchorPoint As AnchorPoint, _
       Optional ByVal scaleX As Double, _
       Optional ByVal scaleY As Double _
    ) As Rectangle
    'Usage
     
    
    Dim instance As WorksheetDrawing
    Dim startAnchorPoint As AnchorPoint
    Dim endAnchorPoint As AnchorPoint
    Dim anchorPoint As AnchorPoint
    Dim scaleX As Double
    Dim scaleY As Double
    Dim value As Rectangle
     
    value = instance.GetRectangle(startAnchorPoint, endAnchorPoint, anchorPoint, scaleX, scaleY)

    Parameters

    startAnchorPoint
    endAnchorPoint
    anchorPoint
    scaleX
    scaleY

    Return Value

    A GrapeCity.Drawing.Rectangle value represents the painting rectangle of the drawing object.
    Remarks
    The paint rectangle related to the anchorPoint. It means that [0, 0] if the anchor point.
    See Also