/// <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)); }
/// <inheritdoc /> public override int GetHashCode() { return(FrameworkAutomationElement?.GetHashCode() ?? 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()); }
/// <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()); }
/// <summary> /// Registers a notification event. /// </summary> public NotificationEventHandlerBase RegisterNotificationEvent(TreeScope treeScope, Action <AutomationElement, NotificationKind, NotificationProcessing, string, string> action) { return(FrameworkAutomationElement.RegisterNotificationEvent(treeScope, action)); }
/// <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)); }
/// <summary> /// Registers a structure changed event. /// </summary> public StructureChangedEventHandlerBase RegisterStructureChangedEvent(TreeScope treeScope, Action <AutomationElement, StructureChangeType, int[]> action) { return(FrameworkAutomationElement.RegisterStructureChangedEvent(treeScope, action)); }
/// <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)); }
/// <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)); }
/// <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()); }
/// <inheritdoc /> public ActiveTextPositionChangedEventHandlerBase RegisterActiveTextPositionChangedEvent(TreeScope treeScope, Action <AutomationElement, ITextRange> action) { return(FrameworkAutomationElement.RegisterActiveTextPositionChangedEvent(treeScope, action)); }