Fixed Rectangle; Page Item Positioning And Dimensions - Adobe 26001360 - Illustrator CS - PC Manual

Scripting guide
Hide thumbs Also See for 26001360 - Illustrator CS - PC:
Table of Contents

Advertisement

Adobe Illustrator CS Scripting Guide
45

Fixed rectangle

To work with rectangular coordinates where there are a pair of x and y values, Illustrator uses
the special class called a fixed rectangle. This class consists of a list with four items in
AppleScript, and a variant array with four elements in Visual Basic. The coordinates of a fixed
rectangle in order are: left, top, right, bottom.
In AppleScript, a fixed rectangle with a left-top corner of (5.0, 200.0) and a right-bottom corner
of (100.0, 20.0) is represented by a list that looks like this:
{5.0, 200.0, 100.0, 20.0}
In Visual Basic, a fixed rectangle with a left-top corner of (5.0, 200.0) and a right-bottom corner
of (100.0, 20.0) is represented by a variant array that looks like this:
Array (5.0, 200.0, 100.0, 20.0)
Alternatively, you can define your array and assign values to its elements like this:
Dim boundsRect(3) As Single
boundsRect(0) = 5.0
boundsRect(1) = 20.0
boundsRect(2) = 100.0
boundsRect(3) = 200.0

Page item positioning and dimensions

Every object, or page item, in a document has a position described by a fixed point and a width
and height. The maximum value allowed for the width or height of a page item is 16348 points.
12 Aug 03

Advertisement

Table of Contents
loading

This manual is also suitable for:

Illustrator cs

Table of Contents