RectangleF.FromLTRB

RectangleF.FromLTRB method

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

public static RectangleF FromLTRB(float left, float top, float right, float bottom)
ParameterTypeDescription
leftSingleThe x-coordinate of the upper-left corner of the rectangular region.
topSingleThe y-coordinate of the upper-left corner of the rectangular region.
rightSingleThe x-coordinate of the lower-right corner of the rectangular region.
bottomSingleThe y-coordinate of the lower-right corner of the rectangular region.

Return Value

The new RectangleF that this method creates.

See Also