public List <MSAAUIItem> GetChildren() { List <MSAAUIItem> accUiItemList = new List <MSAAUIItem>(); foreach (IAccessible accUIObject in MSAA.GetAccessibleChildren(_me)) { MSAAUIItem accUIItem = new MSAAUIItem(accUIObject); accUiItemList.Add(accUIItem); } return(accUiItemList); }
public List <MSAAUIItem> GetChildren(AccessibleUIItemType uiItemType) { List <MSAAUIItem> accUiItemList = new List <MSAAUIItem>(); foreach (IAccessible accUIObject in MSAA.GetAccessibleChildren(_me)) { MSAAUIItem accUIItem = new MSAAUIItem(accUIObject); if (accUIItem.Properties.Role == MSAARoles.GetRoleText(uiItemType)) { accUiItemList.Add(accUIItem); } } return(accUiItemList); }
public static List<MSAAUIItem> GetAllUIItemsOfType(AccessibleUIItemType uiItemType, bool ignoreInvisible) { List<MSAAUIItem> accUiItemList = new List<MSAAUIItem>(); var accObjectList = new List<IAccessible>(); MSAA.GetAccessibleObjectListByRole(_me, MSAARoles.GetRoleText(uiItemType), ref accObjectList, ignoreInvisible); foreach (IAccessible accUIObject in accObjectList) { MSAAUIItem accUIItem = new MSAAUIItem(accUIObject); if (accUIItem.Properties.Role == MSAARoles.GetRoleText(uiItemType)) { accUiItemList.Add(accUIItem); } } return accUiItemList; }
public static List <MSAAUIItem> GetAllUIItemsOfType(AccessibleUIItemType uiItemType, bool ignoreInvisible) { List <MSAAUIItem> accUiItemList = new List <MSAAUIItem>(); var accObjectList = new List <IAccessible>(); MSAA.GetAccessibleObjectListByRole(_me, MSAARoles.GetRoleText(uiItemType), ref accObjectList, ignoreInvisible); foreach (IAccessible accUIObject in accObjectList) { MSAAUIItem accUIItem = new MSAAUIItem(accUIObject); if (accUIItem.Properties.Role == MSAARoles.GetRoleText(uiItemType)) { accUiItemList.Add(accUIItem); } } return(accUiItemList); }
public List<MSAAUIItem> GetChildren(AccessibleUIItemType uiItemType) { List<MSAAUIItem> accUiItemList = new List<MSAAUIItem>(); foreach (IAccessible accUIObject in MSAA.GetAccessibleChildren(_me)) { MSAAUIItem accUIItem = new MSAAUIItem(accUIObject); if(accUIItem.Properties.Role == MSAARoles.GetRoleText(uiItemType)) { accUiItemList.Add(accUIItem); } } return accUiItemList; }
public List<MSAAUIItem> GetChildren() { List<MSAAUIItem> accUiItemList = new List<MSAAUIItem>(); foreach(IAccessible accUIObject in MSAA.GetAccessibleChildren(_me)) { MSAAUIItem accUIItem = new MSAAUIItem(accUIObject); accUiItemList.Add(accUIItem); } return accUiItemList; }