Previous Document Next Document

Object Model Reference : Classes : G : Grid : Methods : Grid.SetFrequency


Grid.SetFrequency

Sub SetFrequency(GridX As Double, GridY As Double)

Description

Member of Grid

The SetFrequency method specifies grid spacing as frequency — the number of grid lines (or dots) per unit of length.

Parameter
Description
GridX
Specifies the number of horizontal grid lines or dots to appear per unit of length. The minimum value is 0.005".
GridY
Specifies the number of vertical grid lines or dots to appear per unit of length. The minimum value is 0.005".

VBA example

The following VBA example sets five lines per inch horizontally and three lines per inch vertically in the grid.

Sub Test()
 ActiveDocument.Unit = cdrInch
 ActiveDocument.Grid.SetFrequency 5, 3
End Sub

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.