AccessibilityHierarchy.GetLowestCommonAncestor

Declaration

public Accessibility.AccessibilityNode GetLowestCommonAncestor(Accessibility.AccessibilityNode firstNode, Accessibility.AccessibilityNode secondNode);

Parameters

firstNode The first node to find the lowest common ancestor of.
secondNode The second node to find the lowest common ancestor of.

Returns

AccessibilityNode The lowest common ancestor of the two given nodes, or null if there is no common ancestor.

Description

Retrieves the lowest common ancestor of two nodes in the hierarchy. The lowest common ancestor is the node that is the common node that both nodes share in their path to the root node of their branch in the hierarchy.


Did you find this page useful? Please give it a rating: