Control.RectangleToClient(Rectangle) Control.RectangleToClient(Rectangle) Control.RectangleToClient(Rectangle) Control.RectangleToClient(Rectangle) Method

定义

计算指定屏幕矩形的大小和位置(以工作区坐标表示)。Computes the size and location of the specified screen rectangle in client coordinates.

public:
 System::Drawing::Rectangle RectangleToClient(System::Drawing::Rectangle r);
public System.Drawing.Rectangle RectangleToClient (System.Drawing.Rectangle r);
member this.RectangleToClient : System.Drawing.Rectangle -> System.Drawing.Rectangle
Public Function RectangleToClient (r As Rectangle) As Rectangle

参数

r
Rectangle Rectangle Rectangle Rectangle

要转换的屏幕坐标 RectangleThe screen coordinate Rectangle to convert.

返回

一个 Rectangle,表示转换后的 Rectangler(以工作区坐标表示)。A Rectangle that represents the converted Rectangle, r, in client coordinates.

适用于

另请参阅