次の方法で共有


Region.FromHrgn メソッド

既存の指定の GDI 領域を認識するハンドルから新しい Region オブジェクトを初期化します。

Public Shared Function FromHrgn( _
   ByVal hrgn As IntPtr _) As Region
[C#]
public static Region FromHrgn(IntPtrhrgn);
[C++]
public: static Region* FromHrgn(IntPtrhrgn);
[JScript]
public static function FromHrgn(
   hrgn : IntPtr) : Region;

パラメータ

  • hrgn
    既存の Region オブジェクトを識別するハンドル。

戻り値

新しい Region オブジェクト。

解説

このメソッドは、 hrgn パラメータのハンドルが参照する既存の Region オブジェクトで内部を定義した、新しい Region オブジェクトを作成します。

必要条件

プラットフォーム: 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 名前空間