Description
This will return the ancstor that is common to this node and the one specified.

Namespace: Docs.Html
Assembly: Docs.Html (in Docs.Html.dll) Version: 2.1.0.0 (2.1)

Syntax

         
 C#  Visual Basic  Visual C++ 
public HtmlNode GetCommonAncestor(
	HtmlNode node
)
Public Function GetCommonAncestor ( _
	node As HtmlNode _
) As HtmlNode
public:
HtmlNode^ GetCommonAncestor(
	HtmlNode^ node
)

Parameters

node
HtmlNode
The possible node that is relative

Return Value

The common ancestor, or null if there is none

See Also