procedure GetViewportShift(var ShiftX, ShiftY: Single);
Returns the X and Y shift of the viewport.
Note: If you previously used CoordXForm property (now removed), use GetViewportShift instead to retrieve the viewport shift.
[See also]: Using Layers