Share via


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)

Syntax

public Rectangle RectangleToClient(
    Rectangle rect
)
public:
Rectangle RectangleToClient(
    Rectangle rect
)
member RectangleToClient : 
        rect:Rectangle -> Rectangle
Public Function RectangleToClient (
    rect As Rectangle
) As Rectangle

Parameters

Return Value

Type: System.Drawing.Rectangle

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

Remarks

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.

See Also

Shape Class
Microsoft.VisualBasic.PowerPacks Namespace
How to: Draw Lines with the LineShape Control (Visual Studio)
How to: Draw Shapes with the OvalShape and RectangleShape Controls (Visual Studio)
Introduction to the Line and Shape Controls (Visual Studio)

Return to top