Previous Document Next Document

Object Model Reference : Classes : D : Document : Properties : Document.Grid


Document.Grid

Property Grid As Grid

Description

Member of Document

The Grid property represents grid settings in CorelDRAW.

 
See the Grid class for more details.

The Grid property returns a read-only value.

VBA example

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

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.