CreateFromEdges(TopLeft: IGxPoint; BottomRight: IGxPoint);
CreateFromEdges(TopLeft: Prognoz.Platform.Interop.Drawing.GxPoint; BottomRight: Prognoz.Platform.Interop.Drawing.GxPoint);
TopLeft. The point that determines the top left corner of the rectangle.
BottomRight. The point that determines the bottom right corner of the rectangle.
The CreateFromEdges constructor creates a new rectangle calculating its sizes and position in accordance with the specified angular points.
Function GetRectFromEdges(TopLeft: IGxPoint; BottomRight: IGxPoint): IGxRect;
Var
OutRect: IGxRect;
Begin
OutRect := New GxRect.CreateFromEdges(TopLeft, BottomRight);
Return OutRect;
End Function GetRectFromEdges;
This function returns the rectangle based on the top left and bottom right points of rectangle borders.
Imports Prognoz.Platform.Interop.Drawing;
Function GetRectFromEdges(TopLeft: GxPoint; BottomRight: GxPoint): GxRect;
Var
OutRect: GxRect = New GxRectClass();
Begin
OutRect.CreateFromEdges(TopLeft, BottomRight);
Return OutRect;
End Function;
The function returns the rectangle based on the top left and bottom right points of rectangle borders.
See also: