RectangleF.FromLTRB(Single, Single, Single, Single) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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);
public static System.Drawing.RectangleF FromLTRB (float left, float top, float right, float bottom);
static member FromLTRB : single * single * single * single -> System.Drawing.RectangleF
Public Shared Function FromLTRB (left As Single, top As Single, right As Single, bottom As Single) As RectangleF
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.