The CreateGridBoxes method creates a group of rectangles (as if using Graph Paper tool).
Parameters
Description
Left
Specifies the distance from the left side of the first rectangle grid box to the left side of the page frame. The value is measured in document units.
Top
Specifies the distance from the top of the first rectangle grid box to the top of the page frame. The value is measured in document units.
Right
Specifies the distance from the right side of the first rectangle grid box to the right side of the page frame. The value is measured in document units.
Bottom
Specifies the distance from the bottom of the first rectangle grid box to the bottom of the page frame. The value is measured in document units.
Wide
Defines the horizontal size of each rectangular grid box. This value is measured in document units.
High
Defines the vertical measurement of the rectangle. This value is measured in document units.
The following code example creates a series of rectangles on the active layer, resembling 2 ?3 graph paper:
Sub Test()
ActiveLayer.CreateGridBoxes 0, 0, 5, 5, 2, 3
End Sub
Copyright 2007 Corel Corporation. All rights reserved.