ViewPortTop Property

Applies To   See Also

Contains the top coordinate of the form that is visible in the viewport. Read-only at design time and run time.

Syntax

Object.ViewPortTop

Remarks

The viewport is the rectangular area of a form displayed in the form’s container. The form container controls the size of the viewport. If you change the size of a form’s container, the viewport also changes size.

The viewport properties and methods are typically used for forms in Active Documents. If an Active Document displays a form that has scroll bars, the scroll bars are displayed on the form when the viewport size is smaller than the size of a rectangle enclosing the controls on the form.

Use the SetViewPort method to set the top and left coordinates of a form in an Acitive Document at run time.

The unit of measurement for the top coordinate of the form is determined by the form's ScaleMode property setting – pixels (the default) or foxels.