Shape.RectangleToClient Method (Rectangle)

 

Computes the size and location of the specified screen rectangle in client coordinates.

Namespace:   Microsoft.VisualBasic.PowerPacks
Assembly:  Microsoft.VisualBasic.PowerPacks.Vs (in Microsoft.VisualBasic.PowerPacks.Vs.dll)

public Rectangle RectangleToClient(
	Rectangle rect
)

Parameters

rect
Type: System.Drawing.Rectangle

The screen coordinate Rectangle to convert.

Return Value

Type: System.Drawing.Rectangle

A Rectangle that represents the converted Rectangle, p, in client coordinates.

Some properties and methods express coordinates relative to the upper-left corner of the screen; others express them relative to the client form. The RectangleToClient and RectangleToScreen methods can be used to convert between the two.

Return to top
Show: