Working With Layout Grids; Adjusting The Grid; Sizing And Positioning Elements On The Grid - Adobe GoLive CS2 Programmer's Manual

Hide thumbs Also See for GoLive CS2:
Table of Contents

Advertisement

SDK Programmer's Guide

Working with Layout Grids

The
layout.grid Object
document object's layout object:
document.layout.grid
Use this object to set up and optimize the Layout Grid programmatically, as you do with the Layout Grid's
Inspector window and its Optimize command.
markupObj
document.layout.grid

Adjusting the grid

Set properties of the layout.grid object to edit the layout grid: you can specify its size, the distance
between grid points, whether grid lines are visible, and whether items dragged on the grid snap to nearby
grid points.
You can also call methods of the layout.grid object to add, delete, select, and deselect HTML elements
on the grid. These have managing objects of their own; see
below.

Sizing and positioning elements on the grid

Elements that are placed on a Layout Grid are managed indirectly by
than directly by their layout objects. The gridLayout object manages an individual element on the
layout grid, allowing you to set the element's size and position with respect to the grid.
Adobe GoLive CS2 SDK
represents a Layout Grid in Layout view. You can get the grid object from the
.layout.gridLayout
Sizing and positioning elements on the grid
layout.gridLayout
Editing with Layout
121
Objects, rather

Advertisement

Table of Contents
loading

Table of Contents