IGxRectF.Offset

Syntax

Offset(DX: Double; DY: Double);

Parameters

DX. Offset by X axis.

DY. Offset by Y axis.

Description

The Offset method offsets the real rectangle by specified values along the X and Y axes.

Example

Sub UserProc;
Var
    r1: IGxRectF;
Begin
    r1 := New GxRectF.Create(00100100);
    // Offset
    r1.Offset(3030);
    Debug.WriteLine("Left: " + r1.Left.ToString + ". Top: " + r1.Top.ToString);
End Sub UserProc;

After executing the example a real rectangle is created. Then the rectangle is offset along the X and Y axes. The obtained coordinates of the rectangle's left top side are displayed in the development environment console.

See also:

IGxRectF