RectangleFromLTRB Method

Creates a Rectangle structure with the specified edge locations.

Namespace:  System.Drawing
Assembly:  Aspose.Drawing (in Aspose.Drawing.dll) Version: 20.9.0.0 (20.9.0)
Syntax
C#
public static Rectangle FromLTRB(
	int left,
	int top,
	int right,
	int bottom
)

Parameters

left
Type: SystemInt32
The x-coordinate of the upper-left corner of this Rectangle structure.
top
Type: SystemInt32
The y-coordinate of the upper-left corner of this Rectangle structure.
right
Type: SystemInt32
The x-coordinate of the lower-right corner of this Rectangle structure.
bottom
Type: SystemInt32
The y-coordinate of the lower-right corner of this Rectangle structure.

Return Value

Type: Rectangle
The new Rectangle that this method creates.
See Also