
479
ADOBE FRAMEMAKER SCRIPTING GUIDE
Function Summary
Last updated 9/26/2011
Parameters
Note:
The returned PropVal structure references memory that is allocated by the method. Use the DeallocatePropVal()
method to free this memory when you are done with using it.
GetTextVal
Description
Gets the value of a specified text property, which can be of any type.
On success, the method returns a
TypedVal
structure containing the value of the specified property.On failure, the
method returns one of the following values to
FA_errno
:
Returns
TypedVal
Syntax
GetTextVal(textLoc, propNum)
Parameters
Parameter name
Data Type
Optional
Description
textLoc
TextLoc
No
The text location of the character for which you want to get the
the text property. The returned property applies to the character
to the right of this location.
propNum
int
No
The property to query. Specify a constant, such as
FontFamily
.
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_NotTextObject (-41)
Object specified for the text location 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 for which you want to get the
text property. The returned property applies to the character to
the right of this location.
propNum
int
No
The property to query. Specify a constant, such as
FontFamily
.