
467
ADOBE FRAMEMAKER SCRIPTING GUIDE
Function Summary
Last updated 9/26/2011
Syntax
AddText(textLoc, text)
Parameters
CenterOnText
Description
Centers a range of text such that the middle of the text appears in the middle of the document window.
The method returns
FE_Success
if it succeeds. On failure, the method returns one of the following values to
FA_errno
:
Returns
int
Syntax
CenterOnText(textRange)
Parameters
Clear
Description
Deletes the current selection from a document.
If you specify 0 for flags, the method suppresses any interactive alerts or warnings that arise, leaves the selected table
cells empty, and deletes hidden text.
You can OR the following values into flags:
Parameter name
Data Type
Optional
Description
textLoc
TextLoc
No
The text location at which to add the text.
text
string
No
The text to add.
Error
Reason
Constants.FE_BadDocId (-2)
Invalid document.
Constants.FE_BadRange (-36)
The specified text range is invalid.
Constants.FE_NotTextObject (-41)
The object that textRange specifies is not a paragraph (FO_Pgf) or a text line (FO_TextLine).
Constants.FE_OffsetNotFound (-21)
The offset specified for the text location could not be found in the specified paragraph or text line.
Parameter name
Data Type
Optional
Description
textRange
TextRange
No
The range of text to center.
Flags
Meaning
Constants.FF_INTERACTIVE (0x0001)
Prompt the user with dialog or alert boxes that arise.
Содержание 65030365 - FrameMaker - PC
Страница 1: ...Scripting Guide ADOBE FRAMEMAKER 10...