FromLTRB()

Rectangle::FromLTRB(int, int, int, int) method

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

static Rectangle System::Drawing::Rectangle::FromLTRB(int left, int top, int right, int bottom)

Arguments

ParameterTypeDescription
leftintThe X coordinate of the left edge of the rectangle
topintThe Y coordinate of the top edge of the rectangle
rightintThe X coordinate of the right edge of the rectangle
bottomintThe Y coordinate of the bottom edge of the rectangle

Return Value

An instance of Rectangle class that represents the speified rectangle

See Also