示例#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);
        }
示例#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);
        }
示例#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;
        }
示例#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);
        }
示例#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;
        }
示例#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;
        }