次の方法で共有


Region.IsVisible メソッド (Single, Single, Single, Single)

指定の四角形に、この Region オブジェクト内に含まれている部分があるかどうかをテストします。

Overloads Public Function IsVisible( _
   ByVal x As Single, _   ByVal y As Single, _   ByVal width As Single, _   ByVal height As Single _) As Boolean
[C#]
public bool IsVisible(floatx,floaty,floatwidth,floatheight);
[C++]
public: bool IsVisible(floatx,floaty,floatwidth,floatheight);
[JScript]
public function IsVisible(
   x : float,y : float,width : float,height : float) : Boolean;

パラメータ

  • x
    テストする四角形の左上隅の x 座標。
  • y
    テストする四角形の左上隅の y 座標。
  • width
    テストする四角形の幅。
  • height
    テストする四角形の高さ。

戻り値

このメソッドは、指定した四角形のいずれかの部分が Region オブジェクトの中に含まれる場合は true を返します。それ以外の場合は false を返します。

使用例

例については、 Region.IsVisible Method (RectangleF) を参照してください。

必要条件

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

参照

Region クラス | Region メンバ | System.Drawing 名前空間 | Region.IsVisible オーバーロードの一覧