Adds a visible grid to the current page.

 

   

Syntax
 

GridID = Doc.AddGrid()

 

   

Params
 
Name Type Description
GridID Long The Object ID of the newly added Grid object.

 

   

Notes
 

Adds a visible grid to the current page. The grid shows locations on the page and the effect of the current transform. It is designed to help with object positioning during development.

 

   

Example
 

The following code modifies the page transform and then adds a grid to show how the transform has affected the page.

Set theDoc = CreateObject("ABCpdf10.Doc")
theDoc.Page = theDoc.AddPage
theDoc.Transform.Rotate 20, 100, 100
theDoc.AddGrid
theDoc.Save "c:\mypdfs\docaddgrid.pdf"


docaddgrid.pdf