API Documentation > CorelDRAW > 2025-v26 > Document > IVGDocument
Document.Rulers property
Returns the Rulers collection for a document, letting you change the properties of the rulers in the document window
Syntax:
Property Get Rulers() As Rulers
Remarks:
The Rulers property returns the Rulers collection for a document, letting you change the properties of the rulers in the document window.
Examples:
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