Creates a
AnnRectangle structure with the specified upper-left corner and lower-right corner and the specified unit of measure.
public static AnnRectangle FromLTRB(
float ,
float ,
float ,
float ,
AnnUnit
)
'Declaration
Public Overloads Shared Function FromLTRB( _
ByVal As Single, _
ByVal As Single, _
ByVal As Single, _
ByVal As Single, _
ByVal As AnnUnit _
) As AnnRectangle
'Usage
Dim left As Single
Dim top As Single
Dim right As Single
Dim bottom As Single
Dim unit As AnnUnit
Dim value As AnnRectangle
value = AnnRectangle.FromLTRB(left, top, right, bottom, unit)
public:
static AnnRectangle FromLTRB(
float ,
float ,
float ,
float ,
AnnUnit
)
Parameters
- left
- The x-coordinate of the upper-left corner of the rectangular region.
- top
- The y-coordinate of the upper-left corner of the rectangular region.
- right
- The x-coordinate of the lower-right corner of the rectangular region.
- bottom
- The y-coordinate of the lower-right corner of the rectangular region.
- unit
- The AnnUnit value indicating the unit of measure for the rectangle.
Return Value
The new
AnnRectangle that this method creates.