次の方法で共有


Rectangle.Contains メソッド (Int32, Int32)

指定した点が Rectangle 構造体に含まれているかどうかを判断します。

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

パラメータ

  • x
    テストする点の x 座標。
  • y
    テストする点の y 座標。

戻り値

x および y によって定義される点がこの Rectangle 構造体に含まれている場合、このメソッドは true を返します。それ以外の場合は false を返します。

必要条件

プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ, .NET Compact Framework - Windows CE .NET

参照

Rectangle 構造体 | Rectangle メンバ | System.Drawing 名前空間 | Rectangle.Contains オーバーロードの一覧