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 具有指定左上角和右下角的 。

适用于