IGxPoint.OffsetS

Syntax

OffsetS(Size: IGxSize);

Parameters

Size. The size, by which offset is executed.

Description

The OffsetS method offsets the point by the size passed by the input parameter.

Example

Sub UserProc;
Var
    p1: IGxPoint;
    s1: IGxSize;
Begin
    p1 := New GxPoint.Create(1010);
    s1 := New GxSize.Create(Math.RandBetweenI(010), Math.RandBetweenI(010));
    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:

IGxPoint