RectangleF.FromLTRB(Single, Single, Single, Single) Method

Definition

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

public static System.Drawing.RectangleF FromLTRB (float left, float top, float right, float bottom);

Parameters

left
Single

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

top
Single

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

right
Single

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

bottom
Single

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

Returns

The new RectangleF that this method creates.

Remarks

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

Applies to

Produk Versi
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1