public static UIA3TextRange NativeToManaged(UIA3Automation automation, UIA.IUIAutomationTextRange nativeTextRange) { return(nativeTextRange == null ? null : new UIA3TextRange(automation, nativeTextRange)); }
internal UIA3TextRange(UIA3Automation automation, UIA.IUIAutomationTextRange nativeRange) { Automation = automation; NativeRange = nativeRange; }
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); }