Home > Code Library > SmartViewport > ScaleHeight

Last Update 24 May 2001

 


Search:



  

Options:

   

   

   

   



SmartViewport
Reference

ScaleHeight

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

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