<doc>
  <legacy_id>2486</legacy_id>
  <name>gridSize</name>
  <type>property</type>
  <syntax>
    <example>set the gridSize to <i>pixelSize</i></example>
  </syntax>
  <library></library>
  <objects>
    <global/>
  </objects>
  <synonyms>
  </synonyms>
  <classification>
    <category>Developing with LiveCode</category>
  </classification>
  <references>
    <property tag="grid">grid Property</property>
    <property tag="centered">centered Property</property>
  </references>
  <history>
    <introduced version="1.0">Added.</introduced>
  </history>
  <platforms>
    <mac/>
    <windows/>
    <linux/>
    <ios/>
    <android/>
  </platforms>
  <classes>
    <desktop/>
    <server/>
    <web/>
    <mobile/>
  </classes>
  <security>
  </security>
  <summary>Specifies the size of squares in the drag grid.</summary>
  <examples>
    <example>set the gridSize to 10 <i>-- objects are aligned to a 10-pixel mesh</i></example>
  </examples>
  <description>
    <p>Use the <b>gridSize</b> <glossary tag="property">property</glossary> to align <glossary tag="object">objects</glossary> in a coarse or fine grid.</p><p/><p><b>Value:</b></p><p>The <b>gridSize</b> is a positive <keyword tag="integer">integer</keyword>.</p><p/><p>By default, the <b>gridSize</b> <glossary tag="property">property</glossary> is set to 2.</p><p/><p><b>Comments:</b></p><p>If the <b>grid</b> <glossary tag="property">property</glossary> is set to true, any <glossary tag="object">object</glossary> the user moves or resizes is moved or resized to the nearest <keyword tag="point">point</keyword> on the grid. If the <glossary tag="object">object</glossary> is moved, its <keyword tag="top">top</keyword> and <constant tag="left">left</constant> are multiples of the <b>gridSize</b>. If the <glossary tag="object">object</glossary> is resized, its <property tag="height">height</property> and <property tag="width">width</property> are multiples of the <b>gridSize</b>.</p><p/><p>If the <b>grid</b> is false, the setting of the <b>gridSize</b> <glossary tag="property">property</glossary> has no effect.</p>
  </description>
</doc>