Shape.RectangleToClient Method

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

'Declaração
Public Function RectangleToClient ( _
    rect As Rectangle _
) As Rectangle
public Rectangle RectangleToClient(
    Rectangle rect
)
public:
Rectangle RectangleToClient(
    Rectangle rect
)
member RectangleToClient : 
        rect:Rectangle -> Rectangle 
public function RectangleToClient(
    rect : Rectangle
) : 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.

.NET Framework Security

See Also

Reference

Shape Class

Microsoft.VisualBasic.PowerPacks Namespace

Other Resources

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)