API Documentation > CorelDRAW > 2025-v26 > Grid > IVGGrid
Grid.Type property
Gets or sets the grid type
Syntax:
Property Get Type() As cdrGridType
Property Let Type(ByVal Value As cdrGridType)
Remarks:
The Type property returns or specifies whether the grid is visible as dots or as lines. The Type property returns a value of cdrGridType.
Examples:
The following VBA example creates a grid with intersecting lines.
Sub Test()
ActiveDocument.Grid.Type = cdrGridLine 
End Sub