IGxPoint.Offset

Syntax

Offset(DX: Integer; DY: Integer);

Parameters

DX. Offset by X axis.

DY. Offset by Y axis.

Description

The Offset method offsets a point by the specified coordinates along the X and Y axes.

Example

Sub UserProc;
Var
    p1: IGxPoint;
Begin
    p1 := New GxPoint.Create(100100);
    // Offset
    p1.Offset(3030);
    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:

IGxPoint