Rectangle.FromLeftTopRightBottom

Rectangle.FromLeftTopRightBottom method

Creates a Rectangle structure with the specified edge locations.

public static Rectangle FromLeftTopRightBottom(int left, int top, int right, int bottom)
ParameterTypeDescription
leftInt32The x-coordinate of the upper-left corner of this Rectangle structure.
topInt32The y-coordinate of the upper-left corner of this Rectangle structure.
rightInt32The x-coordinate of the lower-right corner of this Rectangle structure.
bottomInt32The y-coordinate of the lower-right corner of this Rectangle structure.

Return Value

The new Rectangle that this method creates.

See Also