Previous Document Next Document
Rulers.VUnits

Property VUnits As cdrUnit

Member of Rulers

The VUnits property returns or sets the unit of measurement in the vertical ruler of the document window. This property returns or sets a value of cdrUnit.

The specified value affects only the user interface of CorelDRAW and has no effect on automation. See also the Unit property of the Document class.

The following code example changes the units of horizontal ruler to inches while the units of the vertical ruler are changed to centimeters:

Sub Test() 
 With ActiveDocument.Rulers 
  .HUnits = cdrInch 
  .VUnits = cdrCentimeter 
 End With 
End Sub 

Previous Document Next Document Back to Top

Copyright 2007 Corel Corporation. All rights reserved.