Screen.getBounds

Overview | Methods | Fields | This Package | All Packages

Screen.getBounds

Retrieves the bounds of the monitor that is closest to the specified point, or that contains the largest region of the specified rectangle or control.

Syntax

public static Rectangle getBounds( Point pt )

public static Rectangle getBounds( Rectangle rect )

public static Rectangle getBounds( Control ctl )

Parameters

pt

A Point object that specifies the coordinates for which to retrieve the monitor bounds.

rect

A Rectangle object that specifies the area for which to retrieve the monitor bounds.

ctl

The Control for which to retrieve the monitor bounds.

Return Value

Returns a Rectangle object that specifies the bounds of the monitor that contains the specified point, rectangle, or control. If no monitor contains the specified object, the monitor closest to the object is returned.

See Also   getWorkingArea