System.Xml.XmlNode.PreviousSibling Property

Gets the node immediately preceding this node.

Syntax

public virtual XmlNode PreviousSibling { get; }

Value

The node that comes before this one, or null if this is the first node in its parent's children.

Remarks

The node before this one in the XmlNode.ParentNode's XmlNode.ChildNodes collection.

Requirements

Namespace: System.Xml
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0