C# Class WindowController.Window

操作対象のウィンドウを表すクラス
Datei anzeigen Open project: castaneai/WindowController

Protected Properties

Property Type Description
handle System.IntPtr

Public Methods

Method Description
BringWindowToTopWithoutActivation ( ) : void

指定したウィンドウをアクティブにせずに最前面に表示する

CaptureImage ( Rectangle rectangle = default(Rectangle) ) : Bitmap

クライアント領域を画像としてキャプチャする

Restore ( ) : void

ウィドウが最小化されている場合、元に戻す

Window ( string processName ) : System

コンストラクタ

Method Details

BringWindowToTopWithoutActivation() public method

指定したウィンドウをアクティブにせずに最前面に表示する
public BringWindowToTopWithoutActivation ( ) : void
return void

CaptureImage() public method

クライアント領域を画像としてキャプチャする
public CaptureImage ( Rectangle rectangle = default(Rectangle) ) : Bitmap
rectangle System.Drawing.Rectangle クライアント領域内のキャプチャしたい領域。指定しない場合はクライアント領域全体をキャプチャする。
return System.Drawing.Bitmap

Restore() public method

ウィドウが最小化されている場合、元に戻す
public Restore ( ) : void
return void

Window() public method

コンストラクタ
public Window ( string processName ) : System
processName string 対象とするウィンドウを持つプロセスの名前
return System

Property Details

handle protected_oe property

対象のウィンドウのハンドル
protected IntPtr,System handle
return System.IntPtr