C# Class WpfScreenHelper.Screen

Represents a display device or multiple display devices on a single system.
Mostra file Open project: micdenny/WpfScreenHelper

Public Methods

Method Description
Equals ( object obj ) : bool

Gets or sets a value indicating whether the specified object is equal to this Screen.

FromHandle ( IntPtr hwnd ) : Screen

Retrieves a Screen for the display that contains the largest portion of the specified control.

FromPoint ( Point point ) : Screen

Retrieves a Screen for the display that contains the specified point.

GetHashCode ( ) : int

Computes and retrieves a hash code for an object.

Private Methods

Method Description
Screen ( ) : System
Screen ( IntPtr monitor ) : System
Screen ( IntPtr monitor, IntPtr hdc ) : System

Method Details

Equals() public method

Gets or sets a value indicating whether the specified object is equal to this Screen.
public Equals ( object obj ) : bool
obj object The object to compare to this Screen.
return bool

FromHandle() public static method

Retrieves a Screen for the display that contains the largest portion of the specified control.
public static FromHandle ( IntPtr hwnd ) : Screen
hwnd System.IntPtr The window handle for which to retrieve the Screen.
return Screen

FromPoint() public static method

Retrieves a Screen for the display that contains the specified point.
public static FromPoint ( Point point ) : Screen
point Point A that specifies the location for which to retrieve a Screen.
return Screen

GetHashCode() public method

Computes and retrieves a hash code for an object.
public GetHashCode ( ) : int
return int