Object Model Reference : Classes : D : Document : Properties : Document.Rulers |
Property Rulers As Rulers
Member of Document
The Rulers property returns the Rulers collection for a document, letting you change the properties of the rulers in the document window.
The Rulers property returns a read-only value.
The following VBA example sets inches as the units of measurement for the horizontal ruler and millimeters for the vertical one.
Sub Test() |
ActiveDocument.Rulers.HUnits = cdrInch |
ActiveDocument.Rulers.VUnits = cdrMillimeter |
End Sub |
Copyright 2013 Corel Corporation. All rights reserved.