SpreadJS Documentation
GC.Spread.Sheets Namespace / Rect type / intersect Method
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
    intersect Method
    In This Topic
    Indicates whether the specified rectangle intersects with the current rectangle.
    Syntax
    var instance = new GC.Spread.Sheets.Rect(x, y, w, h);
    var value; // Type: boolean
    value = instance.intersect(x, y, w, h);
    function intersect( 
       x : number,
       y : number,
       w : number,
       h : number
    ) : boolean;

    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.

    Return Value

    true if the specified rectangle intersects with the current rectangle; otherwise, false.
    See Also

    Reference

    Rect type