Object Model Reference : Classes : G : Grid : Properties : Grid.SpacingX |
Property SpacingX As Double
Member of Grid
The SpacingX property returns or specifies the horizontal distance between grid lines or dots.
The minimum value is 0.005".
You can use the SetFrequency method to specify the frequency of the lines or dots per unit length.
The following VBA example sets the spacing within the grid so that horizontal and vertical grid lines appear every 0.5" from each other.
Sub Test() |
With ActiveDocument.Grid |
.SpacingX = 0.5 |
.SpacingY = 0.5 |
End With |
End Sub |
Copyright 2013 Corel Corporation. All rights reserved.