none
How to delete default XML parts from word document in Word Add-in RRS feed

Answers

  • The collection doesn't provide such methods. You need to get an entry and then use the Delete method.

    I.e. there are CustomXMLParts and CustomXMLPart classes. The latter provides the Delete method.

    Monday, July 14, 2014 11:57 AM

All replies

  • Hello,

    The Document class provides the CustomXMLParts property which returns a corresponding collection of all XML parts. You can use the Delete method of the CustomXMLPart class to delete a particular one.

    Monday, July 14, 2014 11:48 AM
  • Thank you.

    I did not find any delete/remove method .Tried below

      document.CustomXMLParts.

    Monday, July 14, 2014 11:52 AM
  • The collection doesn't provide such methods. You need to get an entry and then use the Delete method.

    I.e. there are CustomXMLParts and CustomXMLPart classes. The latter provides the Delete method.

    Monday, July 14, 2014 11:57 AM