Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        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);
        }