Spread Windows Forms 15.0
GrapeCity.Spreadsheet Assembly / GrapeCity.Drawing Namespace / Rectangle Structure / Rectangle Constructor / Rectangle Constructor(Point,Size)
The coordinates of the upper-left corner of the rectangle.
The size of the rectangle.


In This Topic
    Rectangle Constructor(Point,Size)
    In This Topic
    Initializes a new instance of the Rect struct with the specified coordinates and size.
    Syntax
    'Declaration
     
    
    Public Function New( _
       ByVal location As Point, _
       ByVal size As Size _
    )
    'Usage
     
    
    Dim location As Point
    Dim size As Size
     
    Dim instance As New Rectangle(location, size)
    public Rectangle( 
       Point location,
       Size size
    )

    Parameters

    location
    The coordinates of the upper-left corner of the rectangle.
    size
    The size of the rectangle.
    See Also