Procedure TParagraph.DeleteWPTextObj(Index:Integer)

Unit: WPRTEDefs
Class: WPRTEDefs.TParagraph

Parameters

  • Index:Integer

Description

Deletes an Object. This function deletes all occurances (there should be only one!) of this object in this paragraph. If the object was still listed for this paragraph it will be unlinked and freed. So if you need to move an object first get the TWPTextObj instance and call Unlink to make it movable. Then execute DeleteWPTextObj.
DeleteWPTextObj deletes the complete index and object list when it deleted the last object in the paragraph