IGxPointF.Offset

Syntax

Offset(DX: Double; DY: Double);

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: IGxPointF;
Begin
    p1 := New GxPointF.Create(100.5100.5);
    // Offset
    p1.Offset(1.51.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:

IGxPointF