Adobe 26001360 Scripting Guide - Page 45
Fixed rectangle, item positioning and dimensions, of 100.0
UPC - 718659321840
View all Adobe 26001360 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 45 highlights
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