Previous Document Next Document

Object Model Reference : Classes : D : Document : Properties : Document.Rulers


Document.Rulers

Property Rulers As Rulers

Description

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.

VBA example

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

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.