C# Класс GR.Win32.Window

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
AttachToCorner ( ScreenCorner corner ) : void

This method tries to set the position of the window so that it's fully visible but one of it's corners is attached to given parameter.

Capture ( ) : Bitmap
Capture ( Rectangle rect ) : Bitmap
CaptureScreen ( IntPtr hwnd, Rectangle rect ) : Bitmap
CaptureScreenNew ( IntPtr hwnd ) : Bitmap
ChildWindowFromPoint ( Point point, string class_name, Window begin_with ) : Window
Equals ( object obj ) : bool
FindChildWindow ( string text_begin ) : Window
FindChildWindow ( string class_name, string text_begin, Window begin_with ) : Window

Pass empty string to class_name to match all. Pass empty string to text_begin to match all. Pass null to begin_with to skip.

FindWindow ( string title_begin ) : Window
FindWindows ( string title_begin ) : GR.Win32.Window[]
Focus ( ) : void
ForegroundWindow ( ) : Window
GetHashCode ( ) : int
GetOpenWindowFromProcessID ( int process_id, string title_begins, string &matched_title ) : Window
GetOpenWindowsFromPID ( int processID ) : string>.IDictionary
GetOpenWindowsFromProcessID ( int process_id, string title_begins ) : List
GetOpenWindowsFromProcessID ( int process_id, string title_begins ) : GR.Win32.Window[]
GetText ( ) : string
GetWindowRect ( IntPtr hwnd ) : Rectangle
GetWindowText ( IntPtr hwnd ) : string
Hide ( ) : void
IsMinimized ( ) : bool
MakeVisible ( ) : void
Minimize ( ) : void
Resize ( Size size ) : void
Restore ( ) : void
SetForeground ( ) : void
SetPosition ( Point position ) : void
Window ( IntPtr window_handle ) : System

Приватные методы

Метод Описание
EnumCallback ( IntPtr hwnd, int lParam ) : bool

Описание методов

AttachToCorner() публичный Метод

This method tries to set the position of the window so that it's fully visible but one of it's corners is attached to given parameter.
public AttachToCorner ( ScreenCorner corner ) : void
corner ScreenCorner
Результат void

Capture() публичный Метод

public Capture ( ) : Bitmap
Результат System.Drawing.Bitmap

Capture() публичный Метод

public Capture ( Rectangle rect ) : Bitmap
rect System.Drawing.Rectangle
Результат System.Drawing.Bitmap

CaptureScreen() публичный статический Метод

public static CaptureScreen ( IntPtr hwnd, Rectangle rect ) : Bitmap
hwnd System.IntPtr
rect System.Drawing.Rectangle
Результат System.Drawing.Bitmap

CaptureScreenNew() публичный статический Метод

public static CaptureScreenNew ( IntPtr hwnd ) : Bitmap
hwnd System.IntPtr
Результат System.Drawing.Bitmap

ChildWindowFromPoint() публичный Метод

public ChildWindowFromPoint ( Point point, string class_name, Window begin_with ) : Window
point Point
class_name string
begin_with Window
Результат Window

Equals() публичный Метод

public Equals ( object obj ) : bool
obj object
Результат bool

FindChildWindow() публичный Метод

public FindChildWindow ( string text_begin ) : Window
text_begin string
Результат Window

FindChildWindow() публичный Метод

Pass empty string to class_name to match all. Pass empty string to text_begin to match all. Pass null to begin_with to skip.
public FindChildWindow ( string class_name, string text_begin, Window begin_with ) : Window
class_name string
text_begin string
begin_with Window
Результат Window

FindWindow() публичный статический Метод

public static FindWindow ( string title_begin ) : Window
title_begin string
Результат Window

FindWindows() публичный статический Метод

public static FindWindows ( string title_begin ) : GR.Win32.Window[]
title_begin string
Результат GR.Win32.Window[]

Focus() публичный Метод

public Focus ( ) : void
Результат void

ForegroundWindow() публичный статический Метод

public static ForegroundWindow ( ) : Window
Результат Window

GetHashCode() публичный Метод

public GetHashCode ( ) : int
Результат int

GetOpenWindowFromProcessID() публичный статический Метод

public static GetOpenWindowFromProcessID ( int process_id, string title_begins, string &matched_title ) : Window
process_id int
title_begins string
matched_title string
Результат Window

GetOpenWindowsFromPID() публичный статический Метод

public static GetOpenWindowsFromPID ( int processID ) : string>.IDictionary
processID int
Результат string>.IDictionary

GetOpenWindowsFromProcessID() публичный статический Метод

public static GetOpenWindowsFromProcessID ( int process_id, string title_begins ) : List
process_id int
title_begins string
Результат List

GetOpenWindowsFromProcessID() публичный статический Метод

public static GetOpenWindowsFromProcessID ( int process_id, string title_begins ) : GR.Win32.Window[]
process_id int
title_begins string
Результат GR.Win32.Window[]

GetText() публичный Метод

public GetText ( ) : string
Результат string

GetWindowRect() публичный статический Метод

public static GetWindowRect ( IntPtr hwnd ) : Rectangle
hwnd System.IntPtr
Результат System.Drawing.Rectangle

GetWindowText() публичный статический Метод

public static GetWindowText ( IntPtr hwnd ) : string
hwnd System.IntPtr
Результат string

Hide() публичный Метод

public Hide ( ) : void
Результат void

IsMinimized() публичный Метод

public IsMinimized ( ) : bool
Результат bool

MakeVisible() публичный Метод

public MakeVisible ( ) : void
Результат void

Minimize() публичный Метод

public Minimize ( ) : void
Результат void

Resize() публичный Метод

public Resize ( Size size ) : void
size System.Drawing.Size
Результат void

Restore() публичный Метод

public Restore ( ) : void
Результат void

SetForeground() публичный Метод

public SetForeground ( ) : void
Результат void

SetPosition() публичный Метод

public SetPosition ( Point position ) : void
position Point
Результат void

Window() публичный Метод

public Window ( IntPtr window_handle ) : System
window_handle System.IntPtr
Результат System