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
'إقرار
Public Function RectangleToClient ( _
rect As Rectangle _
) As Rectangle
'الاستخدام
Dim instance As Shape
Dim rect As Rectangle
Dim returnValue As Rectangle
returnValue = instance.RectangleToClient(rect)
public Rectangle RectangleToClient(
Rectangle rect
)
public:
Rectangle RectangleToClient(
Rectangle rect
)
member RectangleToClient :
rect:Rectangle -> Rectangle
public function RectangleToClient(
rect : Rectangle
) : Rectangle
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.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
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)