Drawing Suite
410
Example
This example adds WordArt that contains the text "Test" to
myDocument
and switches from
horizontal text flow (the default for the specified word art effect, text effect1) to vertical text flow.
set myDocument to make new document
set newWordArt to make new word art at the beginning of myDocument ¬
with properties {preset word art effect:text effect1, ¬
word art text:"Test", font name:"Arial Black", font size:36, ¬
bold:False, italic:False, left position:100, top:100}
toggle vertical text word art format of newWordArt
Command: two color gradient
Sets the specified fill to a two-color gradient.
Syntax
two color gradient shape/fill format Required. An expression that returns a fill format object.
gradient style Required. The gradient style. Can be one of the following: gradient unset,
diagonal down gradient, diagonal up gradient, from center gradient, from corner gradient,
horizontal gradient, or vertical gradient. (The constant from title gradient is used only in
PowerPoint.)
gradient variant Required. The gradient variant. Can be a value from 1 to 4, corresponding to the
four variants on the Gradient tab in the Fill Effects dialog box. If style is from center gradient,
this argument can be either 1 or 2.
Example
This example adds a rectangle with a two-color gradient fill to
myDocument
and sets the background
and foreground color for the fill.
set myDocument to make new document
make new shape at the beginning of myDocument with properties ¬
{auto shape type:autoshape rectangle, left position:0, top:0, ¬
width:40,
height:80}
set fore color of fill format of shape 1 of myDocument to ¬
({128, 0, 0} as RGB color)
set back color of fill format of shape 1 of myDocument to ¬
({0, 170, 170} as RGB color)
two color gradient shape 1 of newDoc gradient style horizontal gradient ¬
gradient variant 1