C# Class VisualUIAVerify.Features.ElementHighlighter

Base class for element highlighters.
Inheritance: IDisposable
Mostra file Open project: TestStack/UIAVerify Class Usage Examples

Public Methods

Method Description
Dispose ( ) : void

this will stop highlighting, release all handlers and references.

ElementHighlighter ( AutomationElementTreeControl treeControl ) : System
StartHighlighting ( ) : void

Starts to highlighting SelectedNode of AutomationElementTreeControl

StopHighlighting ( ) : void

Stops highlighting and hide highlighting rectangle.

Protected Methods

Method Description
OnDispose ( ) : void

this method is to acknowledge that Dispose was called so it is good to release everything

SetToolTip ( string toolTipMessage ) : void

this method enables setting ToolTip message about selected automation element

SetVisibility ( bool show ) : void

this method enables to show or hide highlighting rectangle

Private Methods

Method Description
OnSelectedNodeChanged ( ) : void

this method will cause the selection of SelectedNode of a tree

ReleaseEventHandler ( ) : void
SetEventHandler ( ) : void
SetHighlightingElement ( AutomationElement selectedElement ) : void

this will set the highlighting rectangle upon automation element.

SetToolTip ( AutomationElement element ) : void

this method will create and set tooltip message of automation element to highlighting rectangle

_treeControl_SelectedNodeChanged ( object sender, EventArgs e ) : void

when SelectedNode is changed then highlight it

Method Details

Dispose() public method

this will stop highlighting, release all handlers and references.
public Dispose ( ) : void
return void

ElementHighlighter() public method

public ElementHighlighter ( AutomationElementTreeControl treeControl ) : System
treeControl VisualUIAVerify.Controls.AutomationElementTreeControl
return System

OnDispose() abstract protected method

this method is to acknowledge that Dispose was called so it is good to release everything
abstract protected OnDispose ( ) : void
return void

SetToolTip() abstract protected method

this method enables setting ToolTip message about selected automation element
abstract protected SetToolTip ( string toolTipMessage ) : void
toolTipMessage string
return void

SetVisibility() abstract protected method

this method enables to show or hide highlighting rectangle
abstract protected SetVisibility ( bool show ) : void
show bool
return void

StartHighlighting() public method

Starts to highlighting SelectedNode of AutomationElementTreeControl
public StartHighlighting ( ) : void
return void

StopHighlighting() public method

Stops highlighting and hide highlighting rectangle.
public StopHighlighting ( ) : void
return void