CreateFromRect(Rect: IGxRect);
CreateFromRect(Rect: Prognoz.Platform.Interop.Drawing.GxRect);
Rect. The rectangle that is used to create a new rectangle.
The CreateFromRect constructor creates a new rectangle that is the copy of the rectangle passed by the Rect parameter.
Function GetCopyRect(SourceRect: IGxRect): IGxRect;
Var
DestinationRect: IGxRect;
Begin
DestinationRect := New GxRect.CreateFromRect(SourceRect);
Return DestinationRect;
End Function GetCopyRect;
This function returns the copy of the rectangle passed as an input parameter.
Imports Prognoz.Platform.Interop.Drawing;
Function GetCopyRect(SourceRect: GxRect): GxRect;
Var
DestinationRect: GxRect = New GxRectClass();
Begin
DestinationRect.CreateFromRect(SourceRect);
Return DestinationRect;
End Function;
This function returns the copy of the rectangle passed as an input parameter.
See also: