
489
ADOBE FRAMEMAKER SCRIPTING GUIDE
Function Summary
Last updated 9/26/2011
Returns
Void
Syntax
SetTextProps(textRange, setVal)
Parameters
SetTextPropVal
Description
Sets a text property for a specified text range. The property can be of any type.
On success, the method does not return anything.
On failure, the method returns one of the following values to
FA_errno
:
Constants.FE_OutOfRange (-7)
Specified property value is out of the legal range for the specified property.
Constants.FE_ReadOnly (-6)
Property is read-only and cannot be set.
Constants.FE_WrongProduct (-60)
Current FrameMaker version does not support this operation.
Parameter name
Data Type
Optional
Description
textRange
TextRange
No
The text range to which to apply the property list.
setVal
PropVals
No
The property list to apply to the text range.
Error
Reason
Constants.FE_BadDocId (-2)
Invalid document.
Constants.FE_BadName (-33)
Specified name is illegal.
Constants.FE_BadPropType (-5)
Incorrect property type for this function.
Constants.FE_BadPropNum (-4)
Specified property number is invalid.
Constants.FE_BadRange (-36)
Specified text range is invalid.
Constants.FE_GenRuleAmbiguous (-55)
General rule in structured document is ambiguous.
Constants.FE_GenRuleConnectorExpected (-57)
General rule in structured document is missing a connector.
Constants.FE_GenRuleItemExpected (-51)
General rule in structured document is missing a rule item.
Constants.FE_GenRuleLeftBracketExpected (-53)
General rule in structured document is missing a left bracket.
Constants.FE_GenRuleMixedConnectors (-52)
General rule in structured document has mixed connectors.
Constants.FE_GenRuleRightBracketExpected (-54)
General rule in structured document is missing a right bracket.
Constants.FE_GenRuleSyntaxError(-56)
General rule in structured document has a syntax error.
Constants.FE_NotTextObject (-41)
Object specified for the text range is not a paragraph (FO_Pgf) or a flow (FO_Flow).
Constants.FE_OffsetNotFound (-21)
Offset specified for the text range could not be found in the specified paragraph or
text line.
Error
Reason