Object Model Reference : Classes : G : Grid : Methods : Grid.SetFrequency |
Sub SetFrequency(GridX As Double, GridY As Double)
Member of Grid
The SetFrequency method specifies grid spacing as frequency the number of grid lines (or dots) per unit of length.
The following VBA example sets five lines per inch horizontally and three lines per inch vertically in the grid.
Sub Test() |
ActiveDocument.Unit = cdrInch |
ActiveDocument.Grid.SetFrequency 5, 3 |
End Sub |
Copyright 2013 Corel Corporation. All rights reserved.