GetTopMenu
Return the menu of the automation control's main, top level menu.
Menu GetTopMenu();
Parameters
None
Return Value
A menu class object that can be used to access menu items.
Remarks
Raises an exception, Facilita.Exception.FCException,
if the automation control does not have a top level menu.
Example
Menu m = notepadWindow.GetTopMenu();
IList<MenuItem> mitems = m.Items;
foreach(MenuItem item in mitems)
{
WriteMessage("isChecked = " + item.IsChecked);
WriteMessage("name=" + item.Name);
Menu subMenu = item.SubMenu;
...
}
Related: