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

適用於