IGxPointF.OffsetS

Syntax

OffsetS(Size: IGxSizeF);

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: IGxPointF;
    s1: IGxSizeF;
Begin
    p1 := New GxPoint.Create(10.510.5);
    s1 := New GxSize.Create(Math.RandBetween(010), Math.RandBetween(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:

IGxPointF