C# Class Microsoft.Test.UIAutomation.Core.TestMenu

Inheritance: IDisposable
Afficher le fichier Open project: geeksree/cSharpGeeks Class Usage Examples

Méthodes publiques

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

Private Methods

Méthode Description
ExpandCollapseEventHandler ( object src, AutomationPropertyChangedEventArgs arguments ) : void

Event handler

expandCollapseMenu ( ExpandCollapseState desiredState ) : void

Will call the approprate ExpandCollapse state to happen

Method Details

Collapse() public méthode

Collapse the menu object
public Collapse ( ) : TestMenu
Résultat TestMenu

Dispose() public méthode

public Dispose ( ) : void
Résultat void

Dispose() public méthode

public Dispose ( bool disposing ) : void
disposing bool
Résultat void

Expand() public méthode

Expand the menu object
public Expand ( ) : TestMenu
Résultat TestMenu

GetFirstSubMenu() public méthode

Get the first child menu using ControlViewWalker
public GetFirstSubMenu ( ) : TestMenu
Résultat TestMenu

GetNextSiblingMenu() public méthode

Get the next sibling menu using ControlViewWalker
public GetNextSiblingMenu ( ) : TestMenu
Résultat TestMenu

Invoke() public méthode

Invoke the menu
public Invoke ( ) : bool
Résultat bool

SubMenu() public méthode

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
Résultat TestMenu

TestMenu() public méthode

Constructor for the menu object
public TestMenu ( AutomationElement element ) : System
element System.Windows.Automation.AutomationElement
Résultat System