Object Model Reference : Classes : R : Rulers : Properties : Rulers.VUnits |
Property VUnits As cdrUnit
Member of Rulers
The VUnits property returns or specifies the unit of measurement for the vertical ruler in the document window. This property returns or specifies a value of cdrUnit.
• |
The specified value affects only the user interface of CorelDRAW and has no
effect on automation.
|
• |
See also the Document.Unit property.
|
The following VBA example changes the unit of measurement for the horizontal ruler to inches and for the vertical ruler to centimeters.
Sub Test() |
With ActiveDocument.Rulers |
.HUnits = cdrInch |
.VUnits = cdrCentimeter |
End With |
End Sub |
Copyright 2013 Corel Corporation. All rights reserved.