SpreadJS Documentation
GC.Spread.Sheets Namespace / Rect type / Rect Constructor
The x-coordinate of the top-left corner of the rectangle.
The y-coordinate of the top-left corner of the rectangle.
The width of the rectangle.
The height of the rectangle.
In This Topic
    Rect Constructor
    In This Topic
    Represents a rectangle with a special location, and its width and height in two-dimensional space.
    Syntax
    var instance = new GC.Spread.Sheets.Rect(x, y, w, h);
    function Rect( 
       x : number,
       y : number,
       w : number,
       h : number
    ) : Rect;

    Parameters

    x
    The x-coordinate of the top-left corner of the rectangle.
    y
    The y-coordinate of the top-left corner of the rectangle.
    w
    The width of the rectangle.
    h
    The height of the rectangle.
    See Also

    Reference

    Rect type