.NET Framework Class Library
Rectangle.Contains Method

Determines if the specified point is contained within the rectangular region defined by this Rectangle.

Overload List

Determines if the specified point is contained within this Rectangle structure.

[Visual Basic] Overloads Public Function Contains(Point) As Boolean
[C#] public bool Contains(Point);
[C++] public: bool Contains(Point);
[JScript] public function Contains(Point) : Boolean;

Determines if the rectangular region represented by rect is entirely contained within this Rectangle structure.

Supported by the .NET Compact Framework.

[Visual Basic] Overloads Public Function Contains(Rectangle) As Boolean
[C#] public bool Contains(Rectangle);
[C++] public: bool Contains(Rectangle);
[JScript] public function Contains(Rectangle) : Boolean;

Determines if the specified point is contained within this Rectangle structure.

Supported by the .NET Compact Framework.

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

See Also

Rectangle Structure | Rectangle Members | System.Drawing Namespace

Page view tracker