NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Rectangle.Contains (Int32, Int32)

Determines if the specfied point is contained within this rectangle.

[Visual Basic]
Overloads Public Function Contains( _
   ByVal x As Integer, _
   ByVal y As Integer _
) As Boolean
[C#]
public bool Contains(
   int x,
   int y
);
[C++]
public: bool Contains(
   int x,
   int y
);
[JScript]
public function Contains(
   x : int,
   y : int
) : Boolean;

Parameters

x
X location to test
y
Y location to test

Return Value

true if the point is contained within this rectangle.

See Also

Rectangle Structure | Rectangle Members | System.Drawing Namespace | Rectangle.Contains Overload List