Share via


Selection.XMLParentNode Property (Word)

Returns an XMLNode object that represents the parent node of a selection.

Syntax

expression .XMLParentNode

expression Required. A variable that represents a Selection object.

Example

The following example returns the parent node of the selection in the active document.

Dim objNode As XMLNode 
 
Set objNode = Selection.XMLParentNode

See Also

Concepts

Selection Object

Selection Object Members