Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
Previous Versions
.NET Framework 1.1
.NET Framework
Reference
System.Drawing
Rectangle Structure
Methods
Contains Method

  Switch on low bandwidth view
This page is specific to
Microsoft Visual Studio 2003/.NET Framework 1.1

Other versions are also available for the following:
.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

© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker