Offset(DX: Integer; DY: Integer);
DX. Offset by X axis.
DY. Offset by Y axis.
The Offset method offsets a point by the specified coordinates along the X and Y axes.
Sub UserProc;
Var
p1: IGxPoint;
Begin
p1 := New GxPoint.Create(100, 100);
// Offset
p1.Offset(30, 30);
Debug.WriteLine("X: " + p1.X.ToString + ". Y: " + p1.Y.ToString);
End Sub UserProc;
After executing the example a point is created. Then point coordinates are offset along the X and Y axes. The obtained point coordinates are displayed in the development environment console.
See also: