Export (0) Print
Expand All

Rectangle.FromLTRB Method

Creates a Rectangle structure with the specified edge locations.

[Visual Basic]
Public Shared Function FromLTRB( _
   ByVal left As Integer, _
   ByVal top As Integer, _
   ByVal right As Integer, _
   ByVal bottom As Integer _
) As Rectangle
[C#]
public static Rectangle FromLTRB(
 int left,
 int top,
 int right,
 int bottom
);
[C++]
public: static Rectangle FromLTRB(
 int left,
 int top,
 int right,
 int bottom
);
[JScript]
public static function FromLTRB(
   left : int,
 top : int,
 right : int,
 bottom : int
) : Rectangle;

Parameters

left
The x-coordinate of the upper-left corner of this Rectangle structure.
top
The y-coordinate of the upper-left corner of this Rectangle structure.
right
The x-coordinate of the lower-right corner of this Rectangle structure.
bottom
The y-coordinate of the lower-right corner of this Rectangle structure.

Return Value

The new Rectangle that this method creates.

Remarks

This method creates a Rectangle with the specified upper-left and lower-right corners.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework

See Also

Rectangle Structure | Rectangle Members | System.Drawing Namespace

Show:
© 2014 Microsoft