API Documentation > CorelDRAW > 2025-v26 > Document > IVGDocument
Document.Grid property
Returns the grid settings for the document
Syntax:
Property Get Grid() As Grid
Remarks:
The Grid property represents grid settings in CorelDRAW. See the Grid class for more details.
Examples:
The following VBA example sets the Grid.Visible property of the grid to True, displaying the grid in the drawing window. The grid type pattern is set to dots and the SetFrequency method places five (5) horizontal and vertical grid dots per square inch in the grid.
Sub GridType()
With ActiveDocument.Grid
  .Visible = True
  .Type = cdrGridDot
  .SetFrequency 5, 5
End With 
End Sub