OffsetS(Size: IGxSize);
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: IGxPoint;
s1: IGxSize;
Begin
p1 := New GxPoint.Create(10, 10);
s1 := New GxSize.Create(Math.RandBetweenI(0, 10), Math.RandBetweenI(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: