System::Drawing::Rectangle::FromLTRB method

Rectangle::FromLTRB 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)
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

ReturnValue

An instance of Rectangle class that represents the speified rectangle

See Also