Offset(DX: Double; DY: Double);
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: IGxPointF;
Begin
p1 := New GxPointF.Create(100.5, 100.5);
// Offset
p1.Offset(1.5, 1.5);
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: