
478
ADOBE FRAMEMAKER SCRIPTING GUIDE
Function Summary
Last updated 9/26/2011
Returns
PropVals
Syntax
GetTextProps(textLoc)
Parameters
GetTextPropVal
Description
Gets a text property (such as the format tag, font family and size, or conditions) for a location in text.
As a text property can be different for each character, you can get the property for only one location in text at a time.
On success, the method returns a
PropVal
structure with the details of the specified property.On failure, the method
returns one of the following values to
FA_errno
:
Returns
PropVal
Syntax
GetTextPropVal(textLoc, propNum)
Constants.FE_BadObjId (-3)
Invalid Object
Constants.FE_NotTextObject (-41)
Object specified for the text range is not an object that contains text.
Constants.FE_OffsetNotFound (-21)
Offset specified for the text location could not be found in the specified paragraph or text line.
Constants.FE_WrongProduct (-60)
The current FrameMaker version does not support the requested operation
Parameter name
Data Type
Optional
Description
textLoc
TextLoc
No
The text location of the character that you want to get text
properties for. The returned properties are the properties that
apply to the character to the right of the specified location.
Error
Reason
Constants.FE_BadDocId (-2)
Invalid document.
Constants.FE_BadObjId (-3)
Invalid Object
Constants.FE_BadPropNum (-4)
Specified property number is invalid.
Constants.FE_BadPropType (-5)
Incorrect property type for this function.
Constants.FE_WrongProduct (-60)
The current FrameMaker version does not support the requested operation
Error
Reason