FromLTRB()

RectangleF::FromLTRB(float, float, float, float) method

Constructs a new RectangleF object that represents a rectangle with the specified edge locations.

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

Arguments

ParameterTypeDescription
leftfloatThe X coordinate of the left edge of the rectangle
topfloatThe Y coordinate of the top edge of the rectangle
rightfloatThe X coordinate of the right edge of the rectangle
bottomfloatThe Y coordinate of the bottom edge of the rectangle

Return Value

An instance of RectangleF class that represents the speified rectangle

See Also