C# Class WpfScreenHelper.Screen

Represents a display device or multiple display devices on a single system.
Afficher le fichier Open project: micdenny/WpfScreenHelper

Méthodes publiques

Méthode 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

Méthode Description
Screen ( ) : System
Screen ( IntPtr monitor ) : System
Screen ( IntPtr monitor, IntPtr hdc ) : System

Method Details

Equals() public méthode

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.
Résultat bool

FromHandle() public static méthode

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.
Résultat Screen

FromPoint() public static méthode

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.
Résultat Screen

GetHashCode() public méthode

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