|
SmartViewport
Reference
Returns the height in twips of the viewport client area. This property is not
available at design time and is read-only at run-time.
Syntax
object.ScaleHeight
The object placeholder represents an object expression that evaluates to a SmartViewport
object.
Remarks
This property is only available at run-time. ScaleHeight property returns
the height of the viewport internal client area. The difference between ScaleHeight
and Height will be height of the border.
Example:
'Set initial Height and BorderStyle
SmartViewport1.Height = 2055
SmartViewport1.BorderStyle = svNone
'Current ScaleHeight returns 2055
Debug.Print
"ScaleHeight = "; SmartViewport1.ScaleHeight
'Change the BorderStyle to vsEtched
SmartViewport1.BorderStyle = svEtched
'Current ScaleHeight is now 1995
Debug.Print
"ScaleHeight = "; SmartViewport1.ScaleHeight
|