C# Класс VisualUIAVerify.Features.ElementHighlighter

Base class for element highlighters.
Наследование: IDisposable
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
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

Приватные методы

Метод Описание
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

Описание методов

Dispose() публичный Метод

this will stop highlighting, release all handlers and references.
public Dispose ( ) : void
Результат void

ElementHighlighter() публичный Метод

public ElementHighlighter ( AutomationElementTreeControl treeControl ) : System
treeControl VisualUIAVerify.Controls.AutomationElementTreeControl
Результат System

OnDispose() абстрактный защищенный Метод

this method is to acknowledge that Dispose was called so it is good to release everything
abstract protected OnDispose ( ) : void
Результат void

SetToolTip() абстрактный защищенный Метод

this method enables setting ToolTip message about selected automation element
abstract protected SetToolTip ( string toolTipMessage ) : void
toolTipMessage string
Результат void

SetVisibility() абстрактный защищенный Метод

this method enables to show or hide highlighting rectangle
abstract protected SetVisibility ( bool show ) : void
show bool
Результат void

StartHighlighting() публичный Метод

Starts to highlighting SelectedNode of AutomationElementTreeControl
public StartHighlighting ( ) : void
Результат void

StopHighlighting() публичный Метод

Stops highlighting and hide highlighting rectangle.
public StopHighlighting ( ) : void
Результат void