Rectangle.FromLeftTopRightBottom

Rectangle.FromLeftTopRightBottom method

使用指定的边缘位置创建一个Rectangle结构。

public static Rectangle FromLeftTopRightBottom(int left, int top, int right, int bottom)
参数类型描述
leftInt32Rectangle 结构左上角的 x 坐标。
topInt32Rectangle 结构左上角的 y 坐标。
rightInt32Rectangle结构右下角的 x 坐标。
bottomInt32Rectangle结构的右下角的 y 坐标。

返回值

此方法创建的新的Rectangle

另请参见