Drawing Suite
382
z order position
Returns the position of the specified shape in the z-order.
Shape 1
returns the shape at the
back of the z-order, and
shape (count of shapes)
returns the shape at the front of the z-
order. Read-only.
To set the shape's position in the z-order, use the
z order
command.
A shape's position in the z-order corresponds to the shape's index number in the shapes list.
For example, if there are four shapes on
myDocument
, the expression
shape 1 of myDocument
returns the shape at the back of the z-order, and the expression
shape 4 of myDocument
returns the shape at the front of the z-order.
Whenever you add a new shape to a document, it's added to the front of the z-order by
default.
Class: standard inline horizontal line
Plural
standard inline horizontal lines
Represents a standard horizontal line in the text layer of a document. The standard inline
horizontal line class inherits all the properties of the
inline shape
class, which includes all the inline
shapes in the main story of a document or in all the headers and footers of a document.
Use standard inline horizontal line index, where index is the name or the index number, to return a
single standard inline horizontal line object.
This example adds a horizontal line above the fifth paragraph in the active document.
make new standard inline horizontal line at the beginning of text object of ¬
paragraph 5 of active document
Properties
<Inheritance> inline shape
Inherits the properties and elements of the inline shape class.
Class: text box
Plural
text boxes
Represents a text box object in the drawing layer of a document. The text box class inherits all the
properties of the
shape
class, which includes all the shapes in the main story of a document or in all
the headers and footers of a document.
Use text box index, where index is the name or the index number, to return a single text box object.
This example adds a text box that contains the text "Test Box" to a new document.
set myDocument to make new document
set myTBox to make new text box at myDocument with properties ¬
{text orientation:horizontal, left position:100, top:100, width:300, ¬
height:200}
set content of text range of text frame of myTBox to "Test Box"