OffsetS(Size: IGxSizeF);
Size. The size, by which offset is executed.
The OffsetS method offsets the point by the size passed by the input parameter.
Sub UserProc;
Var
p1: IGxPointF;
s1: IGxSizeF;
Begin
p1 := New GxPoint.Create(10.5, 10.5);
s1 := New GxSize.Create(Math.RandBetween(0, 10), Math.RandBetween(0, 10));
p1.OffsetS(s1);
Debug.WriteLine("X: " + p1.X.ToString + ". Y: " + p1.Y.ToString);
End Sub UserProc;
After executing the example a point and a size are created. Then point coordinates are offset by the created size. The obtained point coordinates are displayed in the development environment console.
See also: