C# Класс Microsoft.Test.UIAutomation.Core.TestMenu

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

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

Метод Описание
Collapse ( ) : TestMenu

Collapse the menu object

Dispose ( ) : void

Dispose ( bool disposing ) : void

Expand ( ) : TestMenu

Expand the menu object

GetFirstSubMenu ( ) : TestMenu

Get the first child menu using ControlViewWalker

GetNextSiblingMenu ( ) : TestMenu

Get the next sibling menu using ControlViewWalker

Invoke ( ) : bool

Invoke the menu

SubMenu ( string indentifer, AutomationProperty property ) : TestMenu

Return the sub menu for this menu that can be identified by using FindFirst(TreeScope.Descendants, new PropertyCondition(property, indentifer));

TestMenu ( AutomationElement element ) : System

Constructor for the menu object

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

Метод Описание
ExpandCollapseEventHandler ( object src, AutomationPropertyChangedEventArgs arguments ) : void

Event handler

expandCollapseMenu ( ExpandCollapseState desiredState ) : void

Will call the approprate ExpandCollapse state to happen

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

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

Collapse the menu object
public Collapse ( ) : TestMenu
Результат TestMenu

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

public Dispose ( ) : void
Результат void

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

public Dispose ( bool disposing ) : void
disposing bool
Результат void

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

Expand the menu object
public Expand ( ) : TestMenu
Результат TestMenu

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

Get the first child menu using ControlViewWalker
public GetFirstSubMenu ( ) : TestMenu
Результат TestMenu

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

Get the next sibling menu using ControlViewWalker
public GetNextSiblingMenu ( ) : TestMenu
Результат TestMenu

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

Invoke the menu
public Invoke ( ) : bool
Результат bool

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

Return the sub menu for this menu that can be identified by using FindFirst(TreeScope.Descendants, new PropertyCondition(property, indentifer));
public SubMenu ( string indentifer, AutomationProperty property ) : TestMenu
indentifer string
property System.Windows.Automation.AutomationProperty
Результат TestMenu

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

Constructor for the menu object
public TestMenu ( AutomationElement element ) : System
element System.Windows.Automation.AutomationElement
Результат System