CustomXmlPart object (JavaScript API for Office v1.1)

JavaScript API for Office v1.1

Represents a single CustomXMLPart in a CustomXMLParts collection.

Last modified: June 12, 2014

Office.context.document.customXmlParts.getByIdAsync(id);

Properties

Name

Description

builtIn

Get a value that indicates whether the CustomXMLPart is built-in.

id

Gets the GUID of the CustomXMLPart

namespaceManager

Gets the set of namespace prefix mappings (CustomXMLPrefixMappings) used against the current CustomXMLPart.

Methods

Name

Description

addHandlerAsync

Asynchronously adds an event handler for a CustomXmlPart object event.

deleteAsync

Asynchronously deletes this custom XML part from the collection.

getNodesAsync

Asynchronously gets any CustomXmlNodes in this custom XML part which match the specified XPath.

getXmlAsync

Asynchronously gets the XML inside this custom XML part.

removeHandlerAsync

Removes an event handler for a CustomXmlPart object event.

Events

Name

Description

nodeDeleted

Occurs when a node is deleted.

nodeInserted

Occurs when a node is inserted.

nodeReplaced

Occurs when a node is replaced.

App types

Task pane apps

Supported clients

Word 2013, Word 2013 SP1, Word 2013 RT

Library

Office.js

Namespace

Office

Show:
© 2014 Microsoft