DeleteObject

<< Click to Display Table of Contents >>

Navigation:  Layout Functions >

DeleteObject

Previous pageReturn to chapter overviewNext page

[Enterprise Edition and above]

Deletes the given VPE Object from the document. References to VPE Objects can be obtained with the properties LastInsertedObject and FirstObject.

method void VPE.DeleteObject(

TVPEObject Object

)

TVPEObject Object

VPE Object that shall be deleted

Remarks:

Use this method with caution: if the deleted object was inserted from a dumped template, and you try to access it with InsertedVpeObject(), an Access Violation will occur.
As an alternative, you could make the object invisible instead of deleting it, by setting its properties Streamable, Viewable and Printable to false.

The preview will not refresh automatically after calling this function. Call Refresh() to do so.