ScaleWidthHeight

 

For Y scales, use this property to set/get the scale's width.  For X scales, use this property to set/get the scale's height.  A value of zero enables the scale width/height to be calculated automatically.  Units are in TWIPS. 

ScaleWidthHeight is a property of the Scale Class.

 

Example 1 

'Set Y-scale width to 400 twips; set X-scale height to 530 twips
XYChartCtrl.YScale(1).ScaleWidthHeight = 400
XYChartCtrl.XScale(1).ScaleWidthHeight = 530
XYChartCtrl.Refresh                       'Refresh required to update chart with changes made

 

Example 2 

'Set Y-scale width to 1500 twips; set X-scale height to 1000 twips
XYChartCtrl.YScale(1).ScaleWidthHeight = 1500
XYChartCtrl.XScale(1).ScaleWidthHeight = 1000
XYChartCtrl.Refresh                       'Refresh required to update chart with changes made

 

 

See Also

Properties