RectangleF.FromLTRB(Single, Single, Single, Single) 方法

定义

RectangleF创建位于指定位置的左上角和右下角的结构。

public:
 static System::Drawing::RectangleF FromLTRB(float left, float top, float right, float bottom);
public static System.Drawing.RectangleF FromLTRB(float left, float top, float right, float bottom);
static member FromLTRB : single * single * single * single -> System.Drawing.RectangleF
Public Shared Function FromLTRB (left As Single, top As Single, right As Single, bottom As Single) As RectangleF

参数

left
Single

矩形区域的左上角的 x 坐标。

top
Single

矩形区域的左上角的 y 坐标。

right
Single

矩形区域右下角的 x 坐标。

bottom
Single

矩形区域右下角的 y 坐标。

返回

此方法创建的新增 RectangleF 功能。

注解

此方法使用指定的左上角和右下角创建一个 RectangleF

适用于