TreeTraversalOptions Enumeration

Defines values that can be used to customize tree navigation order.

Syntax

typedef enum TreeTraversalOptions {
  TreeTraversalOptions_Default,
  TreeTraversalOptions_PostOrder,
  TreeTraversalOptions_LastToFirstOrder
} ;

Constants

TreeTraversalOptions_Default Pre-order, visit children from first to last.
TreeTraversalOptions_PostOrder Post-order, see Remarks for more info.
TreeTraversalOptions_LastToFirstOrder Visit children from last to first.

Remarks

Option groups (flags):

  • Traversal order (pre-order, post-order) defines when nodes should be tested against search conditions. For example, "on enter" or "on leave".
  • Visit order defines in which order relatives are visited. Relatives include children and siblings. Visit orders are relative to parents. From the child perspective First-to-Last means "visit the next sibling from the child" while Last-to-First means "visit the previous sibling from the child".

Requirements

   
Minimum supported client Windows 10, version 1703 [desktop apps only]
Minimum supported server None supported
Header uiautomationclient.h (include UIAutomation.h, Uiautomationcoreapi.h)

See Also

Text Attribute Identifiers