Home > Code Library > SmartViewport > OffsetX

Last Update 24 May 2001

 


Search:



  

Options:

   

   

   

   



SmartViewport
Reference

OffsetX

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

Syntax

object.OffsetX

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 OffsetX returns 0
Debug.Print "OffsetX = "; SmartViewport1.OffsetX

'Scroll 200 twips left
SmartViewport1.Scroll 1, 200


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

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