Set the boundary to pan with in the limit

I am using OpenCascade for drawing lines.
I can pan inside the view to indefinite coordinates.

Right now my requirement is to set a limit for panning inside the drawing area.
Example: To set a limit of +- 200. Above this coordinates limit the application should stop panning.

Could any one please help me to achieve this.