API Documentation > CorelDRAW > 2025-v26 > Grid > IVGGrid
Grid.SpacingX property
Gets or sets the spacing for X
Syntax:
Property Get SpacingX() As Double
Property Let SpacingX(ByVal Value As Double)
Remarks:
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.
Examples:
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