Edit

Share via


Word.Interfaces.XmlNodeUpdateData interface

An interface for updating data on the XmlNode object, for use in xmlNode.set({ ... }).

Properties

placeholderText

Specifies the text displayed for this element if it contains no text. Only applies to element nodes, not attribute nodes.

text

Specifies the text contained within the XML element. Returns an empty string if the node type is attribute.

value

Specifies the value of this XML node. For element nodes, represents the text content; for attribute nodes, represents the attribute value.

Property Details

placeholderText

Specifies the text displayed for this element if it contains no text. Only applies to element nodes, not attribute nodes.

placeholderText?: string;

Property Value

string

Remarks

[ API set: WordApiDesktop 1.4 ]

text

Specifies the text contained within the XML element. Returns an empty string if the node type is attribute.

text?: string;

Property Value

string

Remarks

[ API set: WordApiDesktop 1.4 ]

value

Note

This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

Specifies the value of this XML node. For element nodes, represents the text content; for attribute nodes, represents the attribute value.

value?: string;

Property Value

string

Remarks

[ API set: WordApi BETA (PREVIEW ONLY) ]