Drawing Suite
400
Example
This example toggles between an automatically scaling first segment and one with a fixed length for
the callout line for callout 1 on
myDocument
.
set myDocument to the active document
if auto length of callout format of callout 1 of myDocument is true then
custom length callout 1 of myDocument length 50
else
automatic length callout 1 of myDocument
end if
Command: flip
Flips the specified shape around its horizontal or vertical axis.
Syntax
flip shape Required. An expression that returns a shape object.
flip command enumeration Required. Specifies whether the shape is to be flipped horizontally
or vertically. Can be either of the following: flip horizontal or flip vertical.
Example
This example adds a triangle to
myDocument
, duplicates the triangle, and then flips the duplicate
triangle vertically and makes it red.
set myDocument to active document
make new shape at myDocument with properties ¬
{auto shape type:autoshape right triangle, left position:10, top:10 ¬
width:50,
height:50}
duplicate shape 1 of myDocument
set fore color of fill format of shape 2 of myDocument to ({255, 0, 0} ¬
as
RGB
color)
flip shape 2 of myDocument flip command flip vertical
Command: get border
Returns the specified border object.
Syntax
get border inline shape Required. An expression that returns an inline shape object.
which border enumeration Required. Can be one of the following: border top, border left,
border bottom, border right, border horizontal, border vertical, border diagonal down, or
border diagonal up.