コード例 #1
0
        public void HandleTextEditTextChangedEvent(UIA.IUIAutomationElement sender, UIA.TextEditChangeType textEditChangeType, string[] eventStrings)
        {
            var frameworkElement = new UIA3FrameworkAutomationElement((UIA3Automation)Automation, sender);
            var senderElement    = new AutomationElement(frameworkElement);

            HandleTextEditTextChangedEvent(senderElement, (TextEditChangeType)textEditChangeType, eventStrings);
        }
コード例 #2
0
        public void HandleStructureChangedEvent(UIA.IUIAutomationElement sender, UIA.StructureChangeType changeType, int[] runtimeId)
        {
            var frameworkElement = new UIA3FrameworkAutomationElement((UIA3Automation)Automation, sender);
            var senderElement    = new SHAutomationElement(frameworkElement);

            HandleStructureChangedEvent(senderElement, (StructureChangeType)changeType, runtimeId);
        }
コード例 #3
0
        public void HandleFocusChangedEvent(UIA.IUIAutomationElement sender)
        {
            var frameworkElement = new UIA3FrameworkAutomationElement((UIA3Automation)Automation, sender);
            var senderElement    = new AutomationElement(frameworkElement);

            HandleFocusChangedEvent(senderElement);
        }
コード例 #4
0
        public void HandleAutomationEvent(UIA.IUIAutomationElement sender, int eventId)
        {
            var frameworkElement = new UIA3FrameworkAutomationElement((UIA3Automation)Automation, sender);
            var senderElement    = new SHAutomationElement(frameworkElement);
            var @event           = EventId.Find(AutomationType.UIA3, eventId);

            HandleAutomationEvent(senderElement, @event);
        }
コード例 #5
0
        public void HandlePropertyChangedEvent(UIA.IUIAutomationElement sender, int propertyId, object newValue)
        {
            var frameworkElement = new UIA3FrameworkAutomationElement((UIA3Automation)Automation, sender);
            var senderElement    = new SHAutomationElement(frameworkElement);
            var property         = PropertyId.Find(Automation.AutomationType, propertyId);

            HandlePropertyChangedEvent(senderElement, property, newValue);
        }
コード例 #6
0
        public void HandleNotificationEvent(UIA.IUIAutomationElement sender, UIA.NotificationKind notificationKind,
                                            UIA.NotificationProcessing notificationProcessing, string displayString, string activityId)
        {
            var frameworkElement = new UIA3FrameworkAutomationElement((UIA3Automation)Automation, sender);
            var senderElement    = new AutomationElement(frameworkElement);

            HandleNotificationEvent(senderElement, (NotificationKind)notificationKind, (NotificationProcessing)notificationProcessing, displayString, activityId);
        }
コード例 #7
0
        public void HandleActiveTextPositionChangedEvent(UIA.IUIAutomationElement sender, UIA.IUIAutomationTextRange range)
        {
            var frameworkElement = new UIA3FrameworkAutomationElement((UIA3Automation)Automation, sender);
            var senderElement    = new AutomationElement(frameworkElement);
            var rangeElement     = new UIA3TextRange((UIA3Automation)Automation, range);

            HandleActiveTextPositionChangedEvent(senderElement, rangeElement);
        }