Property ParentNode
- Namespace
- SharpVectors.Dom
- Assembly
- SharpVectors.Core.dll
ParentNode
Gets the parent of this node (for nodes that can have parents).
XmlNode ParentNode { get; }
Property Value
- XmlNode
The XmlNode that is the parent of the current node. If a node has just been created and not yet added to the tree, or if it has been removed from the tree, the parent is null. For all other nodes, the value returned depends on the NodeType of the node.
Remarks
Gets the parent of this node. All nodes, except IAttribute, IDocument, IDocumentFragment, IEntity, and INotation may have a parent. However, if a node has just been created and not yet added to the tree, or if it has been removed from the tree, this is null.