Spread.Sheets Documentation
contains Method
GC.Spread.Sheets Namespace > Rect type : contains Method
The x-coordinate of the point to check.
The y-coordinate of the point to check.
Indicates whether the rectangle contains the specified x-coordinate and y-coordinate.
Syntax
var instance = new GC.Spread.Sheets.Rect(x, y, w, h);
var value; // Type: boolean
value = instance.contains(x, y);
function contains( 
   x : number,
   y : number
) : boolean;

Parameters

x
The x-coordinate of the point to check.
y
The y-coordinate of the point to check.

Return Value

true if (x, y) is contained by the rectangle; otherwise, false.
See Also

Reference

Rect type