Adobe 65030365 - FrameMaker - PC Manual page 475

Scripting guide
Hide thumbs Also See for 65030365 - FrameMaker - PC:
Table of Contents

Advertisement

ADOBE FRAMEMAKER SCRIPTING GUIDE
Function Summary
Syntax
AddText(textLoc, text)
Parameters
Parameter name
textLoc
text
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
:
FA_errno
Error
Constants.FE_BadDocId (-2)
Constants.FE_BadRange (-36)
Constants.FE_NotTextObject (-41)
Constants.FE_OffsetNotFound (-21)
Returns
int
Syntax
CenterOnText(textRange)
Parameters
Parameter name
textRange
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:
Flags
Constants.FF_INTERACTIVE (0x0001)
Data Type
Optional
No
TextLoc
string
No
if it succeeds. On failure, the method returns one of the following values to
Reason
Invalid document.
The specified text range is invalid.
The object that textRange specifies is not a paragraph (FO_Pgf) or a text line (FO_TextLine).
The offset specified for the text location could not be found in the specified paragraph or text line.
Data Type
Optional
TextRange
No
Meaning
Prompt the user with dialog or alert boxes that arise.
Last updated 9/26/2011
Description
The text location at which to add the text.
The text to add.
Description
The range of text to center.
467

Advertisement

Table of Contents
loading

This manual is also suitable for:

Framemaker 10

Table of Contents