LEADTOOLS Annotations (Leadtools.Annotations assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.29
FromLTRB(Single,Single,Single,Single,AnnUnit) Method
See Also 
Leadtools.Annotations Namespace > AnnRectangle Structure > FromLTRB Method : FromLTRB(Single,Single,Single,Single,AnnUnit) Method



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.

The FromLTRB(Single,Single,Single,Single,AnnUnit) Method is available in LEADTOOLS Document and Medical Imaging toolkits.

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.
Creates a AnnRectangle structure with the specified upper-left corner and lower-right corner and the specified unit of measure.

Syntax

Visual Basic (Declaration) 
Overloads Public Shared Function FromLTRB( _
   ByVal left As Single, _
   ByVal top As Single, _
   ByVal right As Single, _
   ByVal bottom As Single, _
   ByVal unit As AnnUnit _
) As AnnRectangle
Visual Basic (Usage)Copy Code
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)
C# 
public static AnnRectangle FromLTRB( 
   float left,
   float top,
   float right,
   float bottom,
   AnnUnit unit
)
C++/CLI 
public:
static AnnRectangle FromLTRB( 
   float left,
   float top,
   float right,
   float bottom,
   AnnUnit unit
) 

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.

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7

See Also

Leadtools.Annotations requires a Document or Medical toolkit license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features