TXTextControl.ObjectDelete Method

This method deletes an image, text frame or OLE object.

Syntax

TXTextControl.ObjectDelete ObjectId
Parameter Description
ObjectId

Is the identifier of the object to delete.

Return Value

The method returns True if the specified object could be deleted, otherwise it returns False.

Remarks

If an object is deleted from code using this method, no ObjectDeleted Event occurs.

Data Types

ObjectId:    Integer
Return value:    Boolean

See Also