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