Moves DlxRect by the specified offsets.

syntaxSyntax:
DlxRect.Offset(dx, dy)

Parameters

Parameter Description
dx Specifies the amount to move left or right. It must be negative to move left.
dy Specifies the amount to move up or down. It must be negative to move down.

Return Value

If the operation ends correctly, it returns true otherwise it returns false.

Remarks

Moves DlxRect x units along the x-axis and y units along the y-axis. The x and y parameters are signed values, so DlxRect can be moved left or right and up or down.

Example

  Copy codeCopy code
var r = new DlxRect(0, 0, 35, 35);
r.Offset(250, 250);
DlxApp.Printf("r.left=%.2f, r.bottom=%.2f, r.right=%.2f, r.top=%.2f", r.left, r.bottom, r.right, r.top);

See also