Exemple #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);
        }
Exemple #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);
        }
Exemple #3
0
        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;
        }
Exemple #4
0
        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);
        }
Exemple #5
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;
        }
Exemple #6
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;
        }