Drawing Suite
398
Command: convert to frame
Converts the specified shape to a frame. Returns a
frame
object that represents the new frame.
Syntax
convert to frame shape Required. An expression that returns a shape object.
Shapes that don't support attached text cannot be converted to frames. For pictures, use the
convert
to inline shape
command.
In the current version of Word, frames have been replaced by text boxes.
Example
This example creates a text box using the selected text, and then it converts the text box to a frame.
if selection type of selection is selection normal then
create textbox selection
convert to frame text box 1 of active document
end if
Command: convert to inline shape
Converts the specified shape in the drawing layer of a document to an inline shape in the text layer.
You can convert only shapes that represent pictures. This command returns an
inline shape
object
that represents the picture.
Syntax
convert to inline shape shape Required. An expression that returns a shape object.
Shapes that support attached text cannot be converted to inline shapes. For these shapes, use the
convert to frame
command.
Example
This example converts each picture in MyDoc.doc to an inline shape.
repeat with s in (get shapes in document "MyDoc.doc")
if shape type of s is shape type picture then
convert to inline shape s
end if
end repeat
Command: convert to shape
Converts an inline shape to a free-floating shape. Returns a
shape
object that represents the new
shape.
Syntax
convert to shape inline shape Required. An expression that returns an inline shape object.
Example
This example converts the first inline shape in the active document to a floating shape.
convert to shape inline shape 1 of active document