2 instantiations of AutomationElement
UIAutomationClient (2)
MS\Internal\Automation\CacheHelper.cs (1)
179AutomationElement node = new AutomationElement(hnode, cachedValues, cachedValueIndex, cacheRequest);
System\Windows\Automation\AutomationElement.cs (1)
80return new AutomationElement(hnode, null, 0, null);
550 references to AutomationElement
UIAutomationClient (411)
MS\Internal\Automation\AutomationPatternInfo.cs (1)
11internal delegate object WrapObjectClientSide(AutomationElement el, SafePatternHandle hPattern, bool cached);
MS\Internal\Automation\BoundingRectTracker.cs (4)
99AutomationElement rawEl = AutomationElement.FromHandle(hwnd); 109AutomationElement.BoundingRectangleProperty, 119ClientEventManager.RaiseEventInThisClientOnly(AutomationElement.AutomationPropertyChangedEvent, rawEl, e);
MS\Internal\Automation\CacheHelper.cs (6)
63internal static AutomationElement BuildAutomationElementsFromResponse( 90AutomationElement root = ParseTreeDescription(response.TreeStructure, response.RequestedData, 137private static AutomationElement ParseTreeDescription( string treeDescription, 179AutomationElement node = new AutomationElement(hnode, cachedValues, cachedValueIndex, cacheRequest); 195AutomationElement prevChild = null; 200AutomationElement child = ParseTreeDescription( treeDescription, properties,
MS\Internal\Automation\CalloutQueueItem.cs (1)
45AutomationElement el = CacheHelper.BuildAutomationElementsFromResponse(_cacheRequest, _cacheResponse);
MS\Internal\Automation\ClickablePoint.cs (18)
22public static bool HitTestForClickablePoint(AutomationElement el, out Point pt) 40AutomationElement hitElement; 90private static bool TryLinePattern( out Point pt, ref Rect rect, AutomationElement el) 123private static bool TrySparsePattern( out Point pt, ref Rect rect, AutomationElement el) 147private static bool TryPattern(double x, double y, out Point pt, ref Rect rect, AutomationElement el ) 163private static bool TryPoint( ref Point pt, AutomationElement el ) 165AutomationElement hitEl; 169private static bool TryPoint( ref Point pt, AutomationElement el, out AutomationElement hitEl ) 173hitEl = AutomationElement.FromPoint(pt); 181private static bool IsTopLevelWindowObscuring( AutomationElement target, Rect targetRect, AutomationElement hitTarget) 189AutomationElement hitTargetAncestor = GetTopLevelAncestor(hitTarget); 201private static AutomationElement GetTopLevelAncestor( AutomationElement target ) 203AutomationElement root = AutomationElement.RootElement; 204AutomationElement targetAncestor = null;
MS\Internal\Automation\ClientEventManager.cs (25)
50RemoveRootListener(AutomationElement.AutomationFocusChangedEvent, Tracker.Focus, eventCallback); 55internal static void AddListener(AutomationElement rawEl, Delegate eventCallback, EventListener l) 78if (_winEventTrackers[(int)Tracker.BoundingRect] == null && HasProperty(AutomationElement.BoundingRectangleProperty, l.Properties)) 92if ( _winEventTrackers [(int)Tracker.MenuOpenedOrClosed] == null && (l.EventId == AutomationElement.MenuOpenedEvent || l.EventId == AutomationElement.MenuClosedEvent) ) 149internal static void RemoveListener( AutomationEvent eventId, AutomationElement el, Delegate eventCallback ) 188if (HasProperty(AutomationElement.BoundingRectangleProperty, l.Properties)) 193if( eventId == AutomationElement.MenuOpenedEvent || eventId == AutomationElement.MenuClosedEvent ) 216RemovePropertyTracker(AutomationElement.BoundingRectangleProperty, Tracker.BoundingRect); 270if (l.EventListener.EventId == AutomationElement.MenuOpenedEvent || l.EventListener.EventId == AutomationElement.MenuClosedEvent) 403internal static void RaiseEventInThisClientOnly(AutomationEvent eventId, AutomationElement rawEl, AutomationEventArgs e) 411AutomationElement el = rawEl; 473AddListener( AutomationElement.RootElement, eventCallback, l ); 497RemoveListener(eventId, AutomationElement.RootElement, eventCallback); 546private static void OnWindowHideOrClose( IntPtr hwnd, AutomationElement rawEl, int [] runtimeId ) 563if ( l.EventId == AutomationElement.StructureChangedEvent ) 604RaiseEventInThisClientOnly(AutomationElement.StructureChangedEvent, runtimeId, e); 609private static void OnWindowShowOrOpen( IntPtr hwnd, AutomationElement rawEl ) 626if ( l.EventId == AutomationElement.StructureChangedEvent ) 661RaiseEventInThisClientOnly(AutomationElement.StructureChangedEvent, rawEl, e); 667private static void OnMenuEvent( AutomationElement rawEl, bool menuHasOpened ) 669AutomationEvent eventId = menuHasOpened ? AutomationElement.MenuOpenedEvent : AutomationElement.MenuClosedEvent;
MS\Internal\Automation\ClientSideQueueItem.cs (4)
23internal ClientSideQueueItem(Delegate clientCallback, AutomationElement srcEl, UiaCoreApi.UiaCacheRequest request, AutomationEventArgs e) 45AutomationElement src; 58if (!(src == null && _e.EventId == AutomationElement.AutomationFocusChangedEvent)) 74private AutomationElement _srcEl; // the source element
MS\Internal\Automation\EventListenerClientSide.cs (13)
24internal EventListenerClientSide(AutomationElement elRoot, Delegate clientCallback, EventListener l) 62if (e.EventId == AutomationElement.AutomationFocusChangedEvent) 82internal bool IsListeningFor(AutomationEvent eventId, AutomationElement el, Delegate clientCallback) 110internal bool WithinScope(AutomationElement el) 114Misc.Compare(_refRid, AutomationElement.RootElement.GetRuntimeId())) 121AutomationElement elThis = AutomationElement; 133AutomationElement elParent; 171Misc.Compare(_refRid, AutomationElement.RootElement.GetRuntimeId())) 220internal AutomationElement AutomationElement 260private bool IsChildOf(AutomationElement elPossibleParent, AutomationElement el) 265AutomationElement elPossibleChild = TreeWalker.RawViewWalker.GetParent(el); 290private AutomationElement _refElement;
MS\Internal\Automation\FocusTracker.cs (6)
86AutomationElement srcEl = GetFocusedElementFromWinEvent(hwnd, idObject, idChild); 102if (!(bool)srcEl.GetCurrentPropertyValue(AutomationElement.HasKeyboardFocusProperty)) 109ClientEventManager.RaiseEventInThisClientOnly(AutomationElement.AutomationFocusChangedEvent, srcEl, e); 119private AutomationElement GetFocusedElementFromWinEvent(IntPtr hwnd, int idObject, int idChild) 181return AutomationElement.Wrap(hnode); 186return AutomationElement.FromHandle(hwnd);
MS\Internal\Automation\HwndProxyElementProvider.cs (9)
88if (idProp == AutomationElement.AutomationIdProperty) 107else if (idProp == AutomationElement.ClassNameProperty) 111else if (idProp == AutomationElement.NameProperty) 134else if (idProp == AutomationElement.IsEnabledProperty) 138else if (idProp == AutomationElement.ProcessIdProperty) 151else if( idProp == AutomationElement.NativeWindowHandleProperty ) 156else if (idProp == AutomationElement.HasKeyboardFocusProperty) 167else if (idProp == AutomationElement.FrameworkIdProperty) 171else if (idProp == AutomationElement.ControlTypeProperty)
MS\Internal\Automation\InvokeHandlers.cs (1)
54internal static void InvokeClientHandler(Delegate clientCallback, AutomationElement srcEl, AutomationEventArgs args)
MS\Internal\Automation\MenuTracker.cs (3)
13internal delegate void MenuHandler( AutomationElement rawEl, bool menuHasOpened ); 45AutomationElement rawEl = null; 67rawEl = AutomationElement.FromHandle( hwnd );
MS\Internal\Automation\Misc.cs (3)
58internal static bool Compare(AutomationElement el1, AutomationElement el2) 135internal static object WrapInterfaceOnClientSide(AutomationElement el, SafePatternHandle hPattern, AutomationPattern pattern)
MS\Internal\Automation\Schema.cs (93)
179return AutomationElement.Wrap(hnode); 186AutomationElement[] els = new AutomationElement[objArr.Length]; 196els[i] = AutomationElement.Wrap(hnode); 265new AutomationPropertyInfo( null, AutomationElement.RuntimeIdProperty, typeof(int[]), null ), 266new AutomationPropertyInfo( convertToRect, AutomationElement.BoundingRectangleProperty, typeof(Rect), Rect.Empty ), 268new AutomationPropertyInfo( null, AutomationElement.ProcessIdProperty, typeof(int), 0 ), 272new AutomationPropertyInfo( convertToControlType, AutomationElement.ControlTypeProperty, typeof(ControlType), ControlType.Custom ), 273new AutomationPropertyInfo( null, AutomationElement.LocalizedControlTypeProperty, typeof(string), "" ), 274new AutomationPropertyInfo( null, AutomationElement.NameProperty, typeof(string), "" ), 275new AutomationPropertyInfo( null, AutomationElement.AcceleratorKeyProperty, typeof(string), "" ), 276new AutomationPropertyInfo( null, AutomationElement.AccessKeyProperty, typeof(string), "" ), 277new AutomationPropertyInfo( convertToBool, AutomationElement.HasKeyboardFocusProperty, typeof(bool), false ), 278new AutomationPropertyInfo( convertToBool, AutomationElement.IsKeyboardFocusableProperty, typeof(bool), false ), 279new AutomationPropertyInfo( convertToBool, AutomationElement.IsEnabledProperty, typeof(bool), false ), 280new AutomationPropertyInfo( null, AutomationElement.AutomationIdProperty, typeof(string), "" ), 281new AutomationPropertyInfo( null, AutomationElement.ClassNameProperty, typeof(string), "" ), 282new AutomationPropertyInfo( null, AutomationElement.HelpTextProperty, typeof(string), "" ), 283new AutomationPropertyInfo( convertToPoint, AutomationElement.ClickablePointProperty, typeof(Point), null ), 284new AutomationPropertyInfo( convertToCultureInfo, AutomationElement.CultureProperty, typeof(CultureInfo), null ), 285new AutomationPropertyInfo( convertToBool, AutomationElement.IsControlElementProperty, typeof(bool), true ), 286new AutomationPropertyInfo( convertToBool, AutomationElement.IsContentElementProperty, typeof(bool), true ), 287new AutomationPropertyInfo( convertToElement, AutomationElement.LabeledByProperty, typeof(AutomationElement), null ), 288new AutomationPropertyInfo( convertToBool, AutomationElement.IsPasswordProperty, typeof(bool), false ), 289new AutomationPropertyInfo( null, AutomationElement.NativeWindowHandleProperty, typeof(int), 0 ), 290new AutomationPropertyInfo( null, AutomationElement.ItemTypeProperty, typeof(string), "" ), 291new AutomationPropertyInfo( convertToBool, AutomationElement.IsOffscreenProperty, typeof(bool), false ), 292new AutomationPropertyInfo( convertToOrientationType, AutomationElement.OrientationProperty, typeof(OrientationType), OrientationType.None ), 293new AutomationPropertyInfo( null, AutomationElement.FrameworkIdProperty, typeof(string), "" ), 294new AutomationPropertyInfo( convertToBool, AutomationElement.IsRequiredForFormProperty, typeof(bool), false ), 295new AutomationPropertyInfo( null, AutomationElement.ItemStatusProperty, typeof(string), "" ), 296new AutomationPropertyInfo( null, AutomationElement.SizeOfSetProperty, typeof(int), -1 ), 297new AutomationPropertyInfo( null, AutomationElement.PositionInSetProperty, typeof(int), -1 ), 298new AutomationPropertyInfo( convertToAutomationHeadingLevel, AutomationElement.HeadingLevelProperty, typeof(AutomationHeadingLevel),AutomationHeadingLevel.None ), 299new AutomationPropertyInfo( convertToBool, AutomationElement.IsDialogProperty, typeof(bool), false ), 303new AutomationPropertyInfo( convertToBool, AutomationElement.IsInvokePatternAvailableProperty, typeof(bool), false ), 304new AutomationPropertyInfo( convertToBool, AutomationElement.IsDockPatternAvailableProperty, typeof(bool), false ), 305new AutomationPropertyInfo( convertToBool, AutomationElement.IsExpandCollapsePatternAvailableProperty, typeof(bool), false ), 306new AutomationPropertyInfo( convertToBool, AutomationElement.IsGridItemPatternAvailableProperty, typeof(bool), false ), 307new AutomationPropertyInfo( convertToBool, AutomationElement.IsGridPatternAvailableProperty, typeof(bool), false ), 308new AutomationPropertyInfo( convertToBool, AutomationElement.IsMultipleViewPatternAvailableProperty, typeof(bool), false ), 309new AutomationPropertyInfo( convertToBool, AutomationElement.IsRangeValuePatternAvailableProperty, typeof(bool), false ), 310new AutomationPropertyInfo( convertToBool, AutomationElement.IsScrollPatternAvailableProperty, typeof(bool), false ), 311new AutomationPropertyInfo( convertToBool, AutomationElement.IsVirtualizedItemPatternAvailableProperty,typeof(bool), false ), 312new AutomationPropertyInfo( convertToBool, AutomationElement.IsItemContainerPatternAvailableProperty, typeof(bool), false ), 313new AutomationPropertyInfo( convertToBool, AutomationElement.IsScrollItemPatternAvailableProperty, typeof(bool), false ), 314new AutomationPropertyInfo( convertToBool, AutomationElement.IsSelectionItemPatternAvailableProperty, typeof(bool), false ), 315new AutomationPropertyInfo( convertToBool, AutomationElement.IsSelectionPatternAvailableProperty, typeof(bool), false ), 316new AutomationPropertyInfo( convertToBool, AutomationElement.IsSynchronizedInputPatternAvailableProperty, typeof(bool), false ), 317new AutomationPropertyInfo( convertToBool, AutomationElement.IsTablePatternAvailableProperty, typeof(bool), false ), 318new AutomationPropertyInfo( convertToBool, AutomationElement.IsTableItemPatternAvailableProperty, typeof(bool), false ), 319new AutomationPropertyInfo( convertToBool, AutomationElement.IsTextPatternAvailableProperty, typeof(bool), false ), 320new AutomationPropertyInfo( convertToBool, AutomationElement.IsTogglePatternAvailableProperty, typeof(bool), false ), 321new AutomationPropertyInfo( convertToBool, AutomationElement.IsTransformPatternAvailableProperty, typeof(bool), false ), 322new AutomationPropertyInfo( convertToBool, AutomationElement.IsValuePatternAvailableProperty, typeof(bool), false ), 323new AutomationPropertyInfo( convertToBool, AutomationElement.IsWindowPatternAvailableProperty, typeof(bool), false ), 341new AutomationPropertyInfo( convertToElementArray, SelectionPattern.SelectionProperty, typeof(AutomationElement[]), Array.Empty<AutomationElement>()), 350new AutomationPropertyInfo( convertToElement, GridItemPattern.ContainingGridProperty, typeof(AutomationElement), null ), 362new AutomationPropertyInfo( convertToElement, SelectionItemPattern.SelectionContainerProperty, typeof(AutomationElement), null ), 363new AutomationPropertyInfo( convertToElementArray, TablePattern.RowHeadersProperty, typeof(AutomationElement[]), Array.Empty<AutomationElement>()), 364new AutomationPropertyInfo( convertToElementArray, TablePattern.ColumnHeadersProperty, typeof(AutomationElement[]), Array.Empty<AutomationElement>()), 366new AutomationPropertyInfo( convertToElementArray, TableItemPattern.RowHeaderItemsProperty, typeof(AutomationElement[]), Array.Empty<AutomationElement>()), 367new AutomationPropertyInfo( convertToElementArray, TableItemPattern.ColumnHeaderItemsProperty, typeof(AutomationElement[]), Array.Empty<AutomationElement>()), 377AutomationElement.RuntimeIdProperty, 378AutomationElement.BoundingRectangleProperty, 379AutomationElement.ProcessIdProperty, 380AutomationElement.IsControlElementProperty, 381AutomationElement.IsContentElementProperty, 383AutomationElement.ControlTypeProperty, 384AutomationElement.LocalizedControlTypeProperty, 385AutomationElement.NameProperty, 386AutomationElement.AcceleratorKeyProperty, 387AutomationElement.AccessKeyProperty, 388AutomationElement.HasKeyboardFocusProperty, 389AutomationElement.IsKeyboardFocusableProperty, 390AutomationElement.IsEnabledProperty, 391AutomationElement.AutomationIdProperty, 392AutomationElement.ClassNameProperty, 393AutomationElement.HelpTextProperty, 394AutomationElement.LabeledByProperty, 395AutomationElement.IsPasswordProperty, 396AutomationElement.ItemTypeProperty, 397AutomationElement.IsOffscreenProperty, 398AutomationElement.OrientationProperty, 399AutomationElement.FrameworkIdProperty, 400AutomationElement.IsRequiredForFormProperty, 401AutomationElement.ItemStatusProperty
MS\Internal\Automation\UiaCoreApi.cs (1)
227if (val == null || val == AutomationElement.NotSupported || UiaCoreApi.IsErrorMarker(val, false/*throwException*/))
MS\Internal\Automation\WindowHideOrCloseTracker.cs (3)
16internal delegate void WindowHideOrCloseHandler( IntPtr hwnd, AutomationElement rawEl, int[] runtimeId ); 68AutomationElement rawEl; 79rawEl = AutomationElement.FromHandle( hwnd );
MS\Internal\Automation\WindowInteractionStateTracker.cs (3)
81AutomationElement rawEl = AutomationElement.FromHandle(hwnd); 114ClientEventManager.RaiseEventInThisClientOnly(AutomationElement.AutomationPropertyChangedEvent, rawEl, e);
MS\Internal\Automation\WindowShowOrOpenTracker.cs (3)
16internal delegate void WindowShowOrOpenHandler( IntPtr hwnd, AutomationElement rawEl ); 78AutomationElement rawEl = AutomationElement.FromHandle( hwnd );
MS\Internal\Automation\WindowVisualStateTracker.cs (3)
81AutomationElement rawEl = AutomationElement.FromHandle(hwnd); 109ClientEventManager.RaiseEventInThisClientOnly(AutomationElement.AutomationPropertyChangedEvent, rawEl, e);
System\Windows\Automation\Automation.cs (24)
34new PropertyCondition( AutomationElement.IsControlElementProperty, false) ); 40new PropertyCondition( AutomationElement.IsControlElementProperty, false), 41new PropertyCondition( AutomationElement.IsContentElementProperty, false))); 63public static bool Compare(AutomationElement el1, AutomationElement el2) 120AutomationElement element, 127Misc.ValidateArgument( eventId != AutomationElement.AutomationFocusChangedEvent, nameof(SR.EventIdMustNotBeAutomationFocusChanged) ); 128Misc.ValidateArgument( eventId != AutomationElement.StructureChangedEvent, nameof(SR.EventIdMustNotBeStructureChanged) ); 129Misc.ValidateArgument( eventId != AutomationElement.AutomationPropertyChangedEvent, nameof(SR.EventIdMustNotBeAutomationPropertyChanged) ); 140if ( Misc.Compare( element, AutomationElement.RootElement ) ) 158object val = element.GetCurrentPropertyValue(AutomationElement.NativeWindowHandleProperty); 189AutomationElement element, 195Misc.ValidateArgument( eventId != AutomationElement.AutomationFocusChangedEvent, nameof(SR.EventIdMustNotBeAutomationFocusChanged) ); 196Misc.ValidateArgument( eventId != AutomationElement.StructureChangedEvent, nameof(SR.EventIdMustNotBeStructureChanged) ); 197Misc.ValidateArgument( eventId != AutomationElement.AutomationPropertyChangedEvent, nameof(SR.EventIdMustNotBeAutomationPropertyChanged) ); 211AutomationElement element, // reference element for listening to the event 234EventListener l = new EventListener(AutomationElement.AutomationPropertyChangedEvent, scope, properties, CacheRequest.CurrentUiaCacheRequest); 244AutomationElement element, // reference element being listened to 252ClientEventManager.RemoveListener(AutomationElement.AutomationPropertyChangedEvent, element, eventHandler); 261public static void AddStructureChangedEventHandler(AutomationElement element, TreeScope scope, StructureChangedEventHandler eventHandler) 267EventListener l = new EventListener(AutomationElement.StructureChangedEvent, scope, null, CacheRequest.CurrentUiaCacheRequest); 277public static void RemoveStructureChangedEventHandler(AutomationElement element, StructureChangedEventHandler eventHandler) 283ClientEventManager.RemoveListener(AutomationElement.StructureChangedEvent, element, eventHandler); 297EventListener l = new EventListener(AutomationElement.AutomationFocusChangedEvent,
System\Windows\Automation\AutomationElement.cs (44)
45_runtimeId = LookupCachedValue(AutomationElement.RuntimeIdProperty, false, true) as int[]; 73internal static AutomationElement Wrap(SafeNodeHandle hnode) 306AutomationElement el = obj as AutomationElement; 347public static bool operator ==(AutomationElement left, AutomationElement right) 364public static bool operator !=(AutomationElement left, AutomationElement right) 389int [] val = LookupCachedValue(AutomationElement.RuntimeIdProperty, false, true) as int[]; 412public static AutomationElement FromPoint(Point pt) 422public static AutomationElement FromHandle(IntPtr hwnd) 450public static AutomationElement FromLocalProvider(IRawElementProviderSimple localImpl) 454return AutomationElement.Wrap(UiaCoreApi.UiaNodeFromProvider(localImpl)); 506if (value != AutomationElement.NotSupported) 520value = AutomationElement.NotSupported; 649if (val == AutomationElement.NotSupported && !ignoreDefaultValue) 726public AutomationElement GetUpdatedCache(CacheRequest request) 746public AutomationElement FindFirst(TreeScope scope, Condition condition) 775AutomationElement[] els = new AutomationElement[responses.Length]; 848object canReceiveFocus = GetCurrentPropertyValue(AutomationElement.IsKeyboardFocusableProperty); 871object ptClickable = GetCurrentPropertyValue(AutomationElement.ClickablePointProperty); 888AutomationElement scan = AutomationElement.FromPoint((Point)ptClickable); 903if (ClickablePoint.HitTestForClickablePoint( (AutomationElement)this, out pt) ) 937public static AutomationElement RootElement 956public static AutomationElement FocusedElement 1024public AutomationElement CachedParent 1068AutomationElement scan = _cachedFirstChild; 1075AutomationElement[] children = new AutomationElement[childCount]; 1110internal AutomationElement Navigate(NavigateDirection direction, Condition condition, CacheRequest request) 1124internal AutomationElement Normalize(Condition condition, CacheRequest request ) 1152internal void SetCachedParent(AutomationElement cachedParent) 1161internal void SetCachedFirstChild(AutomationElement cachedFirstChild) 1166internal void SetCachedNextSibling(AutomationElement cachedNextSibling) 1268private static AutomationElement DrillForPointOrFocus(bool atPoint, Point pt, UiaCoreApi.UiaCacheRequest cacheRequest) 1341private AutomationElement _cachedParent; 1342private AutomationElement _cachedFirstChild; 1343private AutomationElement _cachedNextSibling; 1370internal AutomationElementInformation(AutomationElement el, bool useCache) 1424public AutomationElement LabeledBy { get { return (AutomationElement) _el.GetPatternPropertyValue(LabeledByProperty, _useCache); } } 1469private AutomationElement _el; // AutomationElement that contains the cache or live reference
System\Windows\Automation\AutomationElementCollection.cs (4)
28internal AutomationElementCollection(AutomationElement[] elements) 47public AutomationElement this[int index] 78public void CopyTo(AutomationElement[] array, int index) 137private AutomationElement[] _elements;
System\Windows\Automation\AutomationFocusChangedEventArgs.cs (1)
48: base(AutomationElement.AutomationFocusChangedEvent)
System\Windows\Automation\BasePattern.cs (2)
20internal AutomationElement _el; 23internal BasePattern( AutomationElement el, SafePatternHandle hPattern )
System\Windows\Automation\CacheRequest.cs (2)
105_properties.Add(AutomationElement.RuntimeIdProperty); 409_defaultUiaCacheRequest = new UiaCoreApi.UiaCacheRequest(Automation.ControlViewCondition, TreeScope.Element, new AutomationProperty[] { AutomationElement.RuntimeIdProperty }, Array.Empty<AutomationPattern>(), AutomationElementMode.Full);
System\Windows\Automation\DockPattern.cs (4)
27private DockPattern(AutomationElement el, SafePatternHandle hPattern, bool cached) 140internal static object Wrap(AutomationElement el, SafePatternHandle hPattern, bool cached) 177internal DockPatternInformation(AutomationElement el, bool useCache) 213private AutomationElement _el; // AutomationElement that contains the cache or live reference
System\Windows\Automation\ExpandCollapsePattern.cs (4)
25private ExpandCollapsePattern(AutomationElement el, SafePatternHandle hPattern, bool cached) 147internal static object Wrap(AutomationElement el, SafePatternHandle hPattern, bool cached) 192internal ExpandCollapsePatternInformation( AutomationElement el, bool useCache ) 228private AutomationElement _el; // AutomationElement that contains the cache or live reference
System\Windows\Automation\GridItemPattern.cs (6)
29internal GridItemPattern(AutomationElement el, SafePatternHandle hPattern, bool cached) 148internal static object Wrap(AutomationElement el, SafePatternHandle hPattern, bool cached) 193internal GridItemPatternInformation(AutomationElement el, bool useCache) 259public AutomationElement ContainingGrid 263return (AutomationElement)_el.GetPatternPropertyValue(ContainingGridProperty, _useCache); 277private AutomationElement _el; // AutomationElement that contains the cache or live reference
System\Windows\Automation\GridPattern.cs (6)
25internal GridPattern(AutomationElement el, SafePatternHandle hPattern, bool cached) 68public AutomationElement GetItem(int row, int column) 71return AutomationElement.Wrap(hNode); 144internal static object Wrap(AutomationElement el, SafePatternHandle hPattern, bool cached) 189internal GridPatternInformation(AutomationElement el, bool useCache) 238private AutomationElement _el; // AutomationElement that contains the cache or live reference
System\Windows\Automation\InvokePattern.cs (2)
34private InvokePattern(AutomationElement el, SafePatternHandle hPattern) 103internal static object Wrap(AutomationElement el, SafePatternHandle hPattern, bool cached)
System\Windows\Automation\ItemContainerPattern.cs (9)
28private ItemContainerPattern(AutomationElement el, SafePatternHandle hPattern) 83public AutomationElement FindItemByProperty(AutomationElement startAfter, AutomationProperty property, object value) 110AutomationElement wrappedElement = AutomationElement.Wrap(hNode); 136if (value != AutomationElement.NotSupported && 144if (value is AutomationElement) 149value = ((AutomationElement)value).GetRuntimeId(); 182internal static object Wrap(AutomationElement el, SafePatternHandle hPattern, bool cached)
System\Windows\Automation\MultipleViewPattern.cs (4)
25private MultipleViewPattern(AutomationElement el, SafePatternHandle hPattern, bool cached) 153internal static object Wrap(AutomationElement el, SafePatternHandle hPattern, bool cached) 198internal MultipleViewPatternInformation(AutomationElement el, bool useCache) 240private AutomationElement _el; // AutomationElement that contains the cache or live reference
System\Windows\Automation\PropertyCondition.cs (3)
134if (val != AutomationElement.NotSupported && 147if (val is AutomationElement) 152val = ((AutomationElement)val).GetRuntimeId();
System\Windows\Automation\RangeValuePattern.cs (4)
32private RangeValuePattern( AutomationElement el, SafePatternHandle hPattern, bool cached ) 173internal static object Wrap(AutomationElement el, SafePatternHandle hPattern, bool cached) 218internal RangeValuePatternInformation(AutomationElement el, bool useCache) 407private AutomationElement _el; // AutomationElement that contains the cache or live reference
System\Windows\Automation\ScrollItemPattern.cs (2)
27private ScrollItemPattern(AutomationElement el, SafePatternHandle hPattern) 78internal static object Wrap(AutomationElement el, SafePatternHandle hPattern, bool cached)
System\Windows\Automation\ScrollPattern.cs (4)
27private ScrollPattern(AutomationElement el, SafePatternHandle hPattern, bool cached) 193internal static object Wrap(AutomationElement el, SafePatternHandle hPattern, bool cached) 238internal ScrollPatternInformation(AutomationElement el, bool useCache) 331private AutomationElement _el; // AutomationElement that contains the cache or live reference
System\Windows\Automation\SelectionItemPattern.cs (6)
27private SelectionItemPattern(AutomationElement el, SafePatternHandle hPattern, bool cached) 176internal static object Wrap(AutomationElement el, SafePatternHandle hPattern, bool cached) 221internal SelectionItemPatternInformation(AutomationElement el, bool useCache) 254public AutomationElement SelectionContainer 258return (AutomationElement)_el.GetPatternPropertyValue(SelectionContainerProperty, _useCache); 272private AutomationElement _el; // AutomationElement that contains the cache or live reference
System\Windows\Automation\SelectionPattern.cs (6)
27private SelectionPattern(AutomationElement el, SafePatternHandle hPattern, bool cached) 147internal static object Wrap(AutomationElement el, SafePatternHandle hPattern, bool cached) 192internal SelectionPatternInformation(AutomationElement el, bool useCache) 213public AutomationElement[] GetSelection() 215return (AutomationElement[])_el.GetPatternPropertyValue(SelectionProperty, _useCache); 264private AutomationElement _el; // AutomationElement that contains the cache or live reference
System\Windows\Automation\SynchronizedInputPattern.cs (2)
28private SynchronizedInputPattern(AutomationElement el, SafePatternHandle hPattern) 109internal static object Wrap(AutomationElement el, SafePatternHandle hPattern, bool cached)
System\Windows\Automation\TableItemPattern.cs (10)
28private TableItemPattern(AutomationElement el, SafePatternHandle hPattern, bool cached) 137internal static new object Wrap(AutomationElement el, SafePatternHandle hPattern, bool cached) 181internal TableItemPatternInformation(AutomationElement el, bool useCache) 247public AutomationElement ContainingGrid 251return (AutomationElement)_el.GetPatternPropertyValue(ContainingGridProperty, _useCache); 256public AutomationElement[] GetRowHeaderItems() 258return (AutomationElement[])_el.GetPatternPropertyValue(RowHeaderItemsProperty, _useCache); 262public AutomationElement[] GetColumnHeaderItems() 264return (AutomationElement[])_el.GetPatternPropertyValue(ColumnHeaderItemsProperty, _useCache); 277private AutomationElement _el; // AutomationElement that contains the cache or live reference
System\Windows\Automation\TablePattern.cs (8)
27private TablePattern(AutomationElement el, SafePatternHandle hPattern, bool cached) 127internal static new object Wrap(AutomationElement el, SafePatternHandle hPattern, bool cached) 171internal TablePatternInformation(AutomationElement el, bool useCache) 189public AutomationElement[] GetRowHeaders() 191return (AutomationElement[])_el.GetPatternPropertyValue(RowHeadersProperty, _useCache); 195public AutomationElement[] GetColumnHeaders() 197return (AutomationElement[])_el.GetPatternPropertyValue(ColumnHeadersProperty, _useCache); 241private AutomationElement _el; // AutomationElement that contains the cache or live reference
System\Windows\Automation\Text\TextRange.cs (7)
246else if (obj != AutomationElement.NotSupported && ai.ObjectConverter != null) 274public AutomationElement GetEnclosingElement() 276return AutomationElement.Wrap(UiaCoreApi.TextRange_GetEnclosingElement(_hTextRange)); 400public AutomationElement[] GetChildren() 403AutomationElement[] wrappedChildren = new AutomationElement[rawChildren.Length]; 407wrappedChildren[i] = AutomationElement.Wrap(hnode);
System\Windows\Automation\TextPattern.cs (5)
29internal TextPattern(AutomationElement el, SafePatternHandle hPattern) 198public TextPatternRange RangeFromChild(AutomationElement childElement) 217Rect rect = (Rect)_element.GetCurrentPropertyValue(AutomationElement.BoundingRectangleProperty); 271internal static object Wrap(AutomationElement el, SafePatternHandle hPattern, bool cached) 298private AutomationElement _element;
System\Windows\Automation\TogglePattern.cs (4)
27private TogglePattern(AutomationElement el, SafePatternHandle hPattern, bool cached) 141internal static object Wrap(AutomationElement el, SafePatternHandle hPattern, bool cached) 186internal TogglePatternInformation(AutomationElement el, bool useCache) 222private AutomationElement _el; // AutomationElement that contains the cache or live reference
System\Windows\Automation\TransformPattern.cs (4)
25private TransformPattern(AutomationElement el, SafePatternHandle hPattern, bool cached) 175internal static object Wrap(AutomationElement el, SafePatternHandle hPattern, bool cached) 220internal TransformPatternInformation(AutomationElement el, bool useCache) 274private AutomationElement _el; // AutomationElement that contains the cache or live reference
System\Windows\Automation\TreeWalker.cs (24)
85public AutomationElement GetParent(AutomationElement element) 100public AutomationElement GetFirstChild(AutomationElement element) 115public AutomationElement GetLastChild(AutomationElement element) 130public AutomationElement GetNextSibling(AutomationElement element) 145public AutomationElement GetPreviousSibling(AutomationElement element) 170public AutomationElement Normalize(AutomationElement element) 188public AutomationElement GetParent(AutomationElement element, CacheRequest request) 206public AutomationElement GetFirstChild(AutomationElement element, CacheRequest request) 224public AutomationElement GetLastChild(AutomationElement element, CacheRequest request) 242public AutomationElement GetNextSibling(AutomationElement element, CacheRequest request) 260public AutomationElement GetPreviousSibling(AutomationElement element, CacheRequest request) 288public AutomationElement Normalize(AutomationElement element, CacheRequest request)
System\Windows\Automation\ValuePattern.cs (4)
28internal ValuePattern(AutomationElement el, SafePatternHandle hPattern, bool cached) 163internal static object Wrap(AutomationElement el, SafePatternHandle hPattern, bool cached) 208internal ValuePatternInformation(AutomationElement el, bool useCache) 259private AutomationElement _el; // AutomationElement that contains the cache or live reference
System\Windows\Automation\VirtualizedItemPattern.cs (2)
27private VirtualizedItemPattern(AutomationElement el, SafePatternHandle hPattern) 79internal static object Wrap(AutomationElement el, SafePatternHandle hPattern, bool cached)
System\Windows\Automation\WindowPattern.cs (4)
29private WindowPattern(AutomationElement el, SafePatternHandle hPattern, bool cached) 202internal static object Wrap(AutomationElement el, SafePatternHandle hPattern, bool cached) 247internal WindowPatternInformation(AutomationElement el, bool useCache) 329private AutomationElement _el; // AutomationElement that contains the cache or live reference
UIAutomationClientSideProviders (139)
MS\Internal\AutomationProxies\EventManager.cs (3)
440if (propertyValue != null && propertyValue != AutomationElement.NotSupported) 508_objectIdWindow.Add(AutomationElement.StructureChangedEvent, new RaiseEvent(HandleStructureChangedEventWindow)); 535_objectIdClient.Add(AutomationElement.StructureChangedEvent, new RaiseEvent(HandleStructureChangedEventClient));
MS\Internal\AutomationProxies\MSAAEventDispatcher.cs (5)
199MaybeFirePropertyChangeEvent(null, AutomationElement.BoundingRectangleProperty, eventTable, hwnd, idObject, idChild, false); 203MaybeFirePropertyChangeEvent(null, AutomationElement.NameProperty, eventTable, hwnd, idObject, idChild, true); 231MaybeFirePropertyChangeEvent(null, AutomationElement.HelpTextProperty, eventTable, hwnd, idObject, idChild, true); 261return eventId == AutomationElement.AutomationPropertyChangedEvent ? properties : new AutomationIdentifier[] { eventId }; 315if (eventTable.ContainsKey(AutomationElement.StructureChangedEvent) && !IsClientObject(idObject, idChild))
MS\Internal\AutomationProxies\MSAANativeProvider.cs (11)
419object isOffscreenProperty = GetPropertyValue(AutomationElement.IsOffscreenProperty); 892if (idProp == AutomationElement.AccessKeyProperty) 897else if (idProp == AutomationElement.NameProperty) 902else if (idProp == AutomationElement.ControlTypeProperty) 910else if (idProp == AutomationElement.IsEnabledProperty) 914else if (idProp == AutomationElement.HelpTextProperty) 919else if (idProp == AutomationElement.ProcessIdProperty) 925else if (idProp == AutomationElement.BoundingRectangleProperty) 941else if (idProp == AutomationElement.IsPasswordProperty) 945else if (idProp == AutomationElement.HasKeyboardFocusProperty) 949else if (idProp == AutomationElement.IsOffscreenProperty)
MS\Internal\AutomationProxies\NonClientArea.cs (1)
81if (idProp == AutomationElement.IsEnabledProperty)
MS\Internal\AutomationProxies\ProxyHwnd.cs (12)
74if (eventId == AutomationElement.AutomationPropertyChangedEvent) 103if (eventId == AutomationElement.AutomationPropertyChangedEvent) 133if ((bool)GetElementProperty(AutomationElement.IsKeyboardFocusableProperty)) 148if (idProp == AutomationElement.AutomationIdProperty) 157else if (idProp == AutomationElement.NameProperty) 205else if (idProp == AutomationElement.LabeledByProperty && _fControlHasLabel) 208object name = GetElementProperty(AutomationElement.NameProperty); 225else if (idProp == AutomationElement.IsOffscreenProperty) 350if (idProp == AutomationElement.HasKeyboardFocusProperty) 354else if (idProp == AutomationElement.NameProperty) 362else if (idProp == AutomationElement.IsOffscreenProperty) 439else if (idEvent == AutomationElement.StructureChangedEvent)
MS\Internal\AutomationProxies\ProxySimple.cs (19)
183if (idProp == AutomationElement.LocalizedControlTypeProperty) 187else if(idProp == AutomationElement.ControlTypeProperty) 191else if (idProp == AutomationElement.IsContentElementProperty) 195else if (idProp == AutomationElement.NameProperty) 199else if (idProp == AutomationElement.AccessKeyProperty) 203else if (idProp == AutomationElement.IsEnabledProperty) 207else if (idProp == AutomationElement.IsKeyboardFocusableProperty) 211else if (idProp == AutomationElement.ProcessIdProperty) 219else if (idProp == AutomationElement.ClickablePointProperty) 230return AutomationElement.NotSupported; 232else if (idProp == AutomationElement.HasKeyboardFocusProperty) 240else if (idProp == AutomationElement.AutomationIdProperty) 248else if (idProp == AutomationElement.IsOffscreenProperty) 252else if (idProp == AutomationElement.HelpTextProperty) 256else if (idProp == AutomationElement.FrameworkIdProperty) 273if (SafeNativeMethods.IsWindowVisible(_hwnd) && (bool)GetElementProperty(AutomationElement.IsEnabledProperty)) 314if ((bool)parent.GetElementProperty(AutomationElement.IsOffscreenProperty)) 337if (GetParent() == null && (bool)GetElementProperty(AutomationElement.IsKeyboardFocusableProperty)) 537object isKeyboardFocusableProperty = GetElementProperty(AutomationElement.IsKeyboardFocusableProperty);
MS\Internal\AutomationProxies\WindowsButton.cs (2)
249if (idProp == AutomationElement.AccessKeyProperty) 259else if (idProp == AutomationElement.IsEnabledProperty)
MS\Internal\AutomationProxies\WindowsComboBox.cs (3)
147if (idProp == AutomationElement.NameProperty) 297if (eventId == AutomationElement.AutomationPropertyChangedEvent) 333if (eventId == AutomationElement.AutomationPropertyChangedEvent)
MS\Internal\AutomationProxies\WindowsContainer.cs (1)
76if (idProp == AutomationElement.IsControlElementProperty)
MS\Internal\AutomationProxies\WindowsEditBox.cs (5)
133if ((bool)GetElementProperty(AutomationElement.IsKeyboardFocusableProperty)) 182if (idProp == AutomationElement.IsControlElementProperty) 190else if (idProp == AutomationElement.IsPasswordProperty) 194else if (idProp == AutomationElement.NameProperty) 205return AutomationElement.NotSupported;
MS\Internal\AutomationProxies\WindowsEditBoxRange.cs (1)
645rval = AutomationElement.NotSupported;
MS\Internal\AutomationProxies\WindowsListBox.cs (3)
168if (idProp == AutomationElement.IsControlElementProperty) 172else if (idProp == AutomationElement.IsOffscreenProperty) 495if ((idProp as AutomationEvent) == AutomationElement.StructureChangedEvent &&
MS\Internal\AutomationProxies\WindowsListView.cs (2)
123if ((eventId == NativeMethods.EventObjectReorder) && (idProp as AutomationEvent) == AutomationElement.StructureChangedEvent) 1965else if ((eventId == NativeMethods.EventObjectDestroy || eventId == NativeMethods.EventObjectCreate) && automationEvent == AutomationElement.StructureChangedEvent)
MS\Internal\AutomationProxies\WindowsListViewGroup.cs (1)
80if (idProp == AutomationElement.ClassNameProperty)
MS\Internal\AutomationProxies\WindowsListViewItem.cs (1)
218if (propertyId == AutomationElement.ClickablePointProperty)
MS\Internal\AutomationProxies\WindowsListViewItemCheckBox.cs (1)
70if (idProp == AutomationElement.IsOffscreenProperty)
MS\Internal\AutomationProxies\WindowsListViewItemStartMenu.cs (2)
82if (idProp == AutomationElement.AccessKeyProperty) 103else if (idProp == AutomationElement.HasKeyboardFocusProperty)
MS\Internal\AutomationProxies\WindowsListViewSubItem.cs (2)
132if (idProp == AutomationElement.IsOffscreenProperty) 147else if (idProp == AutomationElement.HasKeyboardFocusProperty)
MS\Internal\AutomationProxies\WindowsMenu.cs (13)
350if (idProp == AutomationElement.NameProperty) 1045if (propertyValue != null && propertyValue != AutomationElement.NotSupported) 1056if (eventId != AutomationElement.AutomationPropertyChangedEvent) 1374if (idProp == AutomationElement.AcceleratorKeyProperty) 1380else if (idProp == AutomationElement.IsEnabledProperty) 1388else if (idProp == AutomationElement.AccessKeyProperty) 1392else if (idProp == AutomationElement.IsKeyboardFocusableProperty) 1396else if (idProp == AutomationElement.HasKeyboardFocusProperty) 1401else if (idProp == AutomationElement.IsOffscreenProperty) 2914if (idProp == AutomationElement.ControlTypeProperty) 2919if (idProp == AutomationElement.AutomationIdProperty) 2925if (idProp == AutomationElement.NativeWindowHandleProperty) 2930return AutomationElement.NotSupported;
MS\Internal\AutomationProxies\WindowsNonControl.cs (1)
62if (idProp == AutomationElement.IsControlElementProperty)
MS\Internal\AutomationProxies\WindowsRebar.cs (2)
356if (idProp == AutomationElement.IsControlElementProperty) 508if (idProp == AutomationElement.IsControlElementProperty)
MS\Internal\AutomationProxies\WindowsRichEdit.cs (3)
131if (idProp == AutomationElement.IsPasswordProperty) 135else if (idProp == AutomationElement.NameProperty) 146return AutomationElement.NotSupported;
MS\Internal\AutomationProxies\WindowsRichEditRange.cs (3)
600rval = AutomationElement.NotSupported; 643return AutomationElement.NotSupported; 784return AutomationElement.NotSupported;
MS\Internal\AutomationProxies\WindowsScrollBar.cs (6)
188if (idProp == AutomationElement.IsControlElementProperty) 192else if (idProp == AutomationElement.IsKeyboardFocusableProperty) 200(bool)GetElementProperty(AutomationElement.IsEnabledProperty)) 210else if (idProp == AutomationElement.IsEnabledProperty) 216else if (idProp == AutomationElement.OrientationProperty) 220else if (idProp == AutomationElement.AutomationIdProperty)
MS\Internal\AutomationProxies\WindowsScrollBarBits.cs (2)
109if (idProp == AutomationElement.IsControlElementProperty) 113else if (idProp == AutomationElement.IsEnabledProperty)
MS\Internal\AutomationProxies\WindowsSlider.cs (1)
88if (idProp == AutomationElement.OrientationProperty)
MS\Internal\AutomationProxies\WindowsSpinner.cs (2)
129if (idProp == AutomationElement.ClickablePointProperty) 133else if (idProp == AutomationElement.HasKeyboardFocusProperty)
MS\Internal\AutomationProxies\WindowsStatic.cs (1)
130if (idProp == AutomationElement.AccessKeyProperty)
MS\Internal\AutomationProxies\WindowsSysHeader.cs (4)
191if (idProp == AutomationElement.OrientationProperty) 227bool isOffscreen = (bool) headerItem.GetElementProperty(AutomationElement.IsOffscreenProperty); 416if (idProp == AutomationElement.AccessKeyProperty) 420else if (idProp == AutomationElement.IsOffscreenProperty)
MS\Internal\AutomationProxies\WindowsTab.cs (5)
144if (idProp == AutomationElement.IsControlElementProperty) 148else if (idProp == AutomationElement.OrientationProperty) 949if (idProp == AutomationElement.AccessKeyProperty && _windowsForms != WindowsFormsHelper.FormControlState.True) 953else if (idProp == AutomationElement.IsControlElementProperty) 1415if (idProp == AutomationElement.IsControlElementProperty)
MS\Internal\AutomationProxies\WindowsTitleBar.cs (2)
278if (idProp == AutomationElement.AutomationIdProperty) 312else if (idProp == AutomationElement.IsEnabledProperty)
MS\Internal\AutomationProxies\WindowsToolbar.cs (5)
91if (eventId == NativeMethods.EventObjectDestroy && idProp == AutomationElement.StructureChangedEvent) 403_fIsKeyboardFocusable = (bool)parent.GetElementProperty(AutomationElement.IsKeyboardFocusableProperty); 458if (idProp == AutomationElement.AccessKeyProperty) 462else if (idProp == AutomationElement.IsControlElementProperty) 466else if (idProp == AutomationElement.IsEnabledProperty)
MS\Internal\AutomationProxies\WindowsToolbarItemAsMenuItem.cs (1)
99if (idProp == AutomationElement.HasKeyboardFocusProperty)
MS\Internal\AutomationProxies\WindowsTooltip.cs (7)
81if( eventId == AutomationElement.ToolTipOpenedEvent ) 83AutomationEventArgs e = new AutomationEventArgs(AutomationElement.ToolTipOpenedEvent); 84AutomationInteropProvider.RaiseAutomationEvent(AutomationElement.ToolTipOpenedEvent, this, e); 86else if( eventId == AutomationElement.ToolTipClosedEvent ) 99if( eventId != AutomationElement.ToolTipClosedEvent ) 160AutomationEventArgs e = new AutomationEventArgs( AutomationElement.ToolTipClosedEvent ); 161AutomationInteropProvider.RaiseAutomationEvent( AutomationElement.ToolTipClosedEvent, wtv, e );
MS\Internal\AutomationProxies\WindowsTreeView.cs (4)
105if (((idProp as AutomationEvent) == AutomationElement.StructureChangedEvent && el is TreeViewItem) && !(eventId == NativeMethods.EventObjectDestroy || eventId == NativeMethods.EventObjectCreate)) 347if (idEvent == AutomationElement.StructureChangedEvent) 842if (idProp == AutomationElement.IsOffscreenProperty) 893if ((bool)parent.GetElementProperty(AutomationElement.IsOffscreenProperty))
MS\Internal\AutomationProxies\WindowsUpDown.cs (2)
114if (idProp == AutomationElement.IsControlElementProperty) 471if (idProp == AutomationElement.IsControlElementProperty)