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

Inheritance: IDisposable
ファイルを表示 Open project: geeksree/cSharpGeeks Class Usage Examples

Public Methods

Method 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

Method 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 method

Collapse the menu object
public Collapse ( ) : TestMenu
return TestMenu

Dispose() public method

public Dispose ( ) : void
return void

Dispose() public method

public Dispose ( bool disposing ) : void
disposing bool
return void

Expand() public method

Expand the menu object
public Expand ( ) : TestMenu
return TestMenu

GetFirstSubMenu() public method

Get the first child menu using ControlViewWalker
public GetFirstSubMenu ( ) : TestMenu
return TestMenu

GetNextSiblingMenu() public method

Get the next sibling menu using ControlViewWalker
public GetNextSiblingMenu ( ) : TestMenu
return TestMenu

Invoke() public method

Invoke the menu
public Invoke ( ) : bool
return bool

SubMenu() public method

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
return TestMenu

TestMenu() public method

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