ImageGear .NET v25.2 - Updated
ImageGear.Web.UI Library / ImageGear.Web.UI Namespace / Rectangle class / contains Method

In This Topic
    contains Method
    In This Topic
    Indicates whether the rectangle contains a given point.
    Syntax
    ASP.NET Ajax JavaScript (Specification) 
    function contains( 
       point : Point
    ) : String;
    ASP.NET Ajax JavaScript (Usage) 
    var resultVar = instanceOfRectangle.contains(Point);

    Parameters

    point
    The point to examine.

    Return Value

    True if the point lies inside the rectangle or false otherwise.
    Remarks

    This function compares the given point to the rectangle that this object represents and returns true if the point lies inside the rectangle.

    See Also