|
|
|
SmartViewport
Reference
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
|
|