C# Class VisualUIAVerify.Controls.AutomationElementTreeNode

Represents currentTestTypeRootNode in AutomationElementsTreeControl
Show file Open project: geeksree/cSharpGeeks Class Usage Examples

Public Properties

Property Type Description
AutomationElement System.Windows.Automation.AutomationElement
AutomationElementTreeControl AutomationElementTreeControl

Private Properties

Property Type Description
AddChildrenNodesToTreeNode void
AddChildrenNodesToTreeNodeInternal void
AutomationElementTreeNode System
CreateChildrenNodes void
CreateTreeNodeForAutomationElement System.Windows.Forms.TreeNode
FindChildNodeForAutomationElementInternal AutomationElementTreeNode
FindOrInsertChildElement AutomationElementTreeNode
InsertChildNode void
SetTreeNodeImageIndex void

Public Methods

Method Description
EnsureChildrenNodesPopulated ( ) : void

This methid Ensures that children nodes of this nodes are populated

EnsureChildrenNodesPopulated ( bool Asynchronous ) : void

This methid Ensures that children nodes of this nodes are populated

FindChildNodeForAutomationElement ( AutomationElement automationElement ) : AutomationElementTreeNode

this method will find AutomatinElementTreeNode for automationElement in children collection

RefreshChildrenNodes ( ) : void

This method will refresh children nodes

Private Methods

Method Description
AddChildrenNodesToTreeNode ( ICollection childrenNodes, bool clearChildrenCollection, bool onlyInsertNew ) : void
AddChildrenNodesToTreeNodeInternal ( ICollection childrenNodes, bool clearChildrenCollection, bool onlyInsertNew ) : void

This method adds child nodes to this.TreeNode. This can run only on UIThread!

AutomationElementTreeNode ( AutomationElement element, TreeNode node, AutomationElementTreeControl automationElementTreeControl ) : System
CreateChildrenNodes ( bool beAwareOfExisting ) : void

This method creates children nodes.

CreateTreeNodeForAutomationElement ( AutomationElement element ) : TreeNode

This is only a helper function to create TreeNode to AutomationElement.

FindChildNodeForAutomationElementInternal ( AutomationElement element ) : AutomationElementTreeNode
FindOrInsertChildElement ( AutomationElement automationElement ) : AutomationElementTreeNode

This method will insert currentTestTypeRootNode for automationElement between child nodes of this currentTestTypeRootNode. If there is existing currentTestTypeRootNode for the automationElement in children collection then return existing currentTestTypeRootNode.

InsertChildNode ( TreeNode childNode ) : void

This method will insert currentTestTypeRootNode between child nodes of this currentTestTypeRootNode

SetTreeNodeImageIndex ( ) : void

this method sets image index for this currentTestTypeRootNode

Method Details

EnsureChildrenNodesPopulated() public method

This methid Ensures that children nodes of this nodes are populated
public EnsureChildrenNodesPopulated ( ) : void
return void

EnsureChildrenNodesPopulated() public method

This methid Ensures that children nodes of this nodes are populated
public EnsureChildrenNodesPopulated ( bool Asynchronous ) : void
Asynchronous bool If true then creating of children will be performed on another thread.
return void

FindChildNodeForAutomationElement() public method

this method will find AutomatinElementTreeNode for automationElement in children collection
public FindChildNodeForAutomationElement ( AutomationElement automationElement ) : AutomationElementTreeNode
automationElement System.Windows.Automation.AutomationElement
return AutomationElementTreeNode

RefreshChildrenNodes() public method

This method will refresh children nodes
public RefreshChildrenNodes ( ) : void
return void

Property Details

AutomationElement public property

Which AutomationElement does this currentTestTypeRootNode belong to
public AutomationElement,System.Windows.Automation AutomationElement
return System.Windows.Automation.AutomationElement

AutomationElementTreeControl public property

Which AutomationElementTreeControl does this currentTestTypeRootNode belong to
public AutomationElementTreeControl,VisualUIAVerify.Controls AutomationElementTreeControl
return AutomationElementTreeControl