C# Class VisualUIAVerify.Features.ElementHighlighter

Base class for element highlighters.
Inheritance: IDisposable
Afficher le fichier Open project: TestStack/UIAVerify Class Usage Examples

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode 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

Méthode 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 méthode

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

ElementHighlighter() public méthode

public ElementHighlighter ( AutomationElementTreeControl treeControl ) : System
treeControl VisualUIAVerify.Controls.AutomationElementTreeControl
Résultat System

OnDispose() abstract protected méthode

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

SetToolTip() abstract protected méthode

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

SetVisibility() abstract protected méthode

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

StartHighlighting() public méthode

Starts to highlighting SelectedNode of AutomationElementTreeControl
public StartHighlighting ( ) : void
Résultat void

StopHighlighting() public méthode

Stops highlighting and hide highlighting rectangle.
public StopHighlighting ( ) : void
Résultat void