Object Model Reference : Classes : D : Document : Properties : Document.Grid |
Property Grid As Grid
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.
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 |
Copyright 2013 Corel Corporation. All rights reserved.