Example #1
0
 /// <summary>
 /// Gets metadata from the UI Automation element that indicates how the information should be interpreted.
 /// </summary>
 /// <param name="targetId">The property to retrieve.</param>
 /// <param name="metadataId">Specifies the type of metadata to retrieve.</param>
 /// <returns>The metadata.</returns>
 public object GetCurrentMetadataValue(PropertyId targetId, int metadataId)
 {
     return(FrameworkAutomationElement.GetCurrentMetadataValue(targetId, metadataId));
 }
Example #2
0
 /// <inheritdoc />
 public override int GetHashCode()
 {
     return(FrameworkAutomationElement?.GetHashCode() ?? 0);
 }
Example #3
0
 /// <summary>
 /// Gets the available patterns for an element via UIA method.
 /// Does not work with cached elements and might be unreliable.
 /// </summary>
 public PatternId[] GetSupportedPatternsDirect()
 {
     return(FrameworkAutomationElement.GetSupportedPatterns());
 }
Example #4
0
 /// <summary>
 /// Gets the available properties for an element via UIA method.
 /// Does not work with cached elements and might be unreliable.
 /// </summary>
 public PropertyId[] GetSupportedPropertiesDirect()
 {
     return(FrameworkAutomationElement.GetSupportedProperties());
 }
Example #5
0
 /// <summary>
 /// Registers a notification event.
 /// </summary>
 public NotificationEventHandlerBase RegisterNotificationEvent(TreeScope treeScope, Action <AutomationElement, NotificationKind, NotificationProcessing, string, string> action)
 {
     return(FrameworkAutomationElement.RegisterNotificationEvent(treeScope, action));
 }
Example #6
0
 /// <summary>
 /// Registers a text edit text changed event.
 /// </summary>
 public TextEditTextChangedEventHandlerBase RegisterTextEditTextChangedEventHandler(TreeScope treeScope, TextEditChangeType textEditChangeType, Action <AutomationElement, TextEditChangeType, string[]> action)
 {
     return(FrameworkAutomationElement.RegisterTextEditTextChangedEventHandler(treeScope, textEditChangeType, action));
 }
Example #7
0
 /// <summary>
 /// Registers a structure changed event.
 /// </summary>
 public StructureChangedEventHandlerBase RegisterStructureChangedEvent(TreeScope treeScope, Action <AutomationElement, StructureChangeType, int[]> action)
 {
     return(FrameworkAutomationElement.RegisterStructureChangedEvent(treeScope, action));
 }
Example #8
0
 /// <summary>
 /// Registers a property changed event with the given property.
 /// </summary>
 public PropertyChangedEventHandlerBase RegisterPropertyChangedEvent(TreeScope treeScope, Action <AutomationElement, PropertyId, object> action, params PropertyId[] properties)
 {
     return(FrameworkAutomationElement.RegisterPropertyChangedEvent(treeScope, action, properties));
 }
Example #9
0
 /// <summary>
 /// Tries to get a clickable point of the element.
 /// </summary>
 /// <param name="point">The clickable point or null, if no point was found</param>
 /// <returns>True if a point was found, false otherwise</returns>
 public bool TryGetClickablePoint(out Point point)
 {
     return(FrameworkAutomationElement.TryGetClickablePoint(out point));
 }
Example #10
0
 /// <summary>
 /// Gets a clickable point of the element.
 /// </summary>
 /// <exception cref="Exceptions.NoClickablePointException">Thrown when no clickable point was found</exception>
 public Point GetClickablePoint()
 {
     return(FrameworkAutomationElement.GetClickablePoint());
 }
Example #11
0
 /// <inheritdoc />
 public ActiveTextPositionChangedEventHandlerBase RegisterActiveTextPositionChangedEvent(TreeScope treeScope, Action <AutomationElement, ITextRange> action)
 {
     return(FrameworkAutomationElement.RegisterActiveTextPositionChangedEvent(treeScope, action));
 }