Previous Document Next Document

Object Model Reference : Classes : R : Rulers : Properties : Rulers.HUnits


Rulers.HUnits

Property HUnits As cdrUnit

Description

Member of Rulers

The HUnits property returns or specifies the unit of measurement for the horizontal 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.
VBA example

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

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.