Ribbon for WinForms | ComponentOne
C1.Win.Interop Namespace / Rect Structure / FromLTRB Method
The X coordinate of the upper-left corner of the rectangular region.
The Y coordinate of the upper-left corner of the rectangular region.
The X coordinate of the lower-right corner of the rectangular region.
The Y coordinate of the lower-right corner of the rectangular region.

In This Topic
    FromLTRB Method (Rect)
    In This Topic
    Creates a Rect structure based on the coordinates of its top-left and bottom-right corners.
    Syntax
    'Declaration
     
    
    Public Shared Function FromLTRB( _
       ByVal left As Double, _
       ByVal top As Double, _
       ByVal right As Double, _
       ByVal bottom As Double _
    ) As Rect
    public static Rect FromLTRB( 
       double left,
       double top,
       double right,
       double bottom
    )

    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.

    Return Value

    The newly created Rect structure.
    See Also