
412
Last updated 9/26/2011
Chapter 5: Function Summary
AFrame
Delete
Description
The
Delete()
method is used to delete an object from a document. When you delete an object that contains another
object, all child objects are also deleted with the parent object. For example, if you delete a frame, all objects within the
frame are also deleted.
The
Delete()
method does not take any arguments.
The method returns
FE_SUCCESS
on success, else returns one of the following values in
FA_errno
:
Returns
int
Syntax
Delete()
GetProps
Description
The
GetProps()
method retrieves the complete property list for a specified object.
The
GetProps()
method takes no arguments.
The method returns a
PropVals
object that contains an array of property-value pairs, on success.
If the
GetProps()
method fails, it sets the
len
field of the returned structure to 0 and assigns one of the following
values to
FA_errno
.
Error
Reason
Constants.FE_BadDocId (-2)
Invalid document.
Constants.FE_BadObjId (-3)
Invalid object.
Constants.FE_BadDelete (-17)
Specified object could not be deleted.
Constants.FE_BadOperation (-27)
Function call specified an illegal operation.
Constants.FE_BadParameter (-43)
Function call specified an invalid parameter.
Constants.FE_NotMenu (72)
Object is a menu item but the document to delete does not belong to the menu.
Error
Reason
Constants.FE_BadDocId (-2)
Invalid document.
Constants.FE_BadObjId (-3)
Invalid object.
Содержание 65030365 - FrameMaker - PC
Страница 1: ...Scripting Guide ADOBE FRAMEMAKER 10...