Home > Code Library > SmartViewport > OffsetY

Last Update 24 May 2001

 


Search:



  

Options:

   

   

   

   



SmartViewport
Reference

OffsetY

Returns the amount of twips the viewport has scrolled up. This property is not available at design time and is read-only at run-time.

Syntax

object.OffsetY

The object placeholder represents an object expression that evaluates to a SmartViewport object.

Remarks

This property is only available at run-time. You can change its value by using method Scroll.

Example:

'Current OffsetY returns 0
Debug.Print "OffsetY = "; SmartViewport1.OffsetY

'Scroll 200 twips up
SmartViewport1.Scroll 0, 200


'Current OffsetY is now 200
Debug
.Print "OffsetY = "; SmartViewport1.OffsetY

 
Copyright © 2001, Andrés Pons (andres@vbsmart.com). All rights reserved.