Sets the values of the ViewPortLeft and ViewPortTop properties for a form.
Object.SetViewPort(nLeft, nTop) |
Parameters
- nLeft
- Specifies the value of the ViewPortLeft property for the form.
- nTop
- Specifies the value of the ViewPortTop property for the form.
Remarks
Applies To: Form
The SetViewPort method returns true (.T.) if the ViewPortLeft and ViewPortTop properties are successfully set; otherwise false (.F.) is returned. The SetViewPort method is ignored for forms that do not contain scroll bars.
The unit of measurement for the ViewPortLeft and ViewPortTop properties is determined by the form's ScaleMode property setting – pixels (the default) or foxels.