gridSize

Specifies the size of squares in the drag grid.

# Metadata

Platforms: desktop, server, mobile OS: mac, windows, linux, ios, android Introduced: 1.0 Security:

# Syntax

set the gridSize to pixelSize

# Examples

set the gridSize to 10 -- objects are aligned to a 10-pixel mesh

# Description

Use the gridSize property to align objects in a coarse or fine grid.

If the grid property is set to true, any object the user moves or resizes is moved or resized to the nearest point on the grid. If the object is moved, its top and left are multiples of the gridSize. If the object is resized, its height and width are multiples of the gridSize.

If the grid is false, the setting of the gridSize property has no effect.

# Tags

# See

- **keyword:** integer, point, top - **constant:** left - **property:** height, centered, width, grid - **glossary:** object, property