RectangleF::FromLTRB Method (Single, Single, Single, Single)

 

Creates a RectangleF structure with upper-left corner and lower-right corner at the specified locations.

Namespace:   System.Drawing
Assembly:  System.Drawing (in System.Drawing.dll)

public:
static RectangleF FromLTRB(
	float left,
	float top,
	float right,
	float bottom
)

Parameters

left
Type: System::Single

The x-coordinate of the upper-left corner of the rectangular region.

top
Type: System::Single

The y-coordinate of the upper-left corner of the rectangular region.

right
Type: System::Single

The x-coordinate of the lower-right corner of the rectangular region.

bottom
Type: System::Single

The y-coordinate of the lower-right corner of the rectangular region.

Return Value

Type: System.Drawing::RectangleF

The new RectangleF that this method creates.

This method creates a RectangleF with the specified upper-left and lower-right corners.

.NET Framework
Available since 1.1
Return to top
Show: