Previous Document Next Document
Document.Grid

Property Grid As Grid

Member of Document

The Grid property represents grid settings in CorelDRAW. See the Grid object for more details.

The Grid property returns a read-only value.

The following code example sets the 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 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 

Previous Document Next Document Back to Top

Copyright 2007 Corel Corporation. All rights reserved.