2 instantiations of AutomationElement
UIAutomationClient (2)
MS\Internal\Automation\CacheHelper.cs (1)
180AutomationElement node = new AutomationElement(hnode, cachedValues, cachedValueIndex, cacheRequest);
System\Windows\Automation\AutomationElement.cs (1)
81return new AutomationElement(hnode, null, 0, null);
550 references to AutomationElement
UIAutomationClient (411)
MS\Internal\Automation\AutomationPatternInfo.cs (1)
12internal delegate object WrapObjectClientSide(AutomationElement el, SafePatternHandle hPattern, bool cached);
MS\Internal\Automation\BoundingRectTracker.cs (4)
100AutomationElement rawEl = AutomationElement.FromHandle(hwnd); 110AutomationElement.BoundingRectangleProperty, 120ClientEventManager.RaiseEventInThisClientOnly(AutomationElement.AutomationPropertyChangedEvent, rawEl, e);
MS\Internal\Automation\CacheHelper.cs (6)
64internal static AutomationElement BuildAutomationElementsFromResponse( 91AutomationElement root = ParseTreeDescription(response.TreeStructure, response.RequestedData, 138private static AutomationElement ParseTreeDescription( string treeDescription, 180AutomationElement node = new AutomationElement(hnode, cachedValues, cachedValueIndex, cacheRequest); 196AutomationElement prevChild = null; 201AutomationElement child = ParseTreeDescription( treeDescription, properties,
MS\Internal\Automation\CalloutQueueItem.cs (1)
46AutomationElement el = CacheHelper.BuildAutomationElementsFromResponse(_cacheRequest, _cacheResponse);
MS\Internal\Automation\ClickablePoint.cs (18)
23public static bool HitTestForClickablePoint(AutomationElement el, out Point pt) 41AutomationElement hitElement; 91private static bool TryLinePattern( out Point pt, ref Rect rect, AutomationElement el) 124private static bool TrySparsePattern( out Point pt, ref Rect rect, AutomationElement el) 148private static bool TryPattern(double x, double y, out Point pt, ref Rect rect, AutomationElement el ) 164private static bool TryPoint( ref Point pt, AutomationElement el ) 166AutomationElement hitEl; 170private static bool TryPoint( ref Point pt, AutomationElement el, out AutomationElement hitEl ) 174hitEl = AutomationElement.FromPoint(pt); 182private static bool IsTopLevelWindowObscuring( AutomationElement target, Rect targetRect, AutomationElement hitTarget) 190AutomationElement hitTargetAncestor = GetTopLevelAncestor(hitTarget); 202private static AutomationElement GetTopLevelAncestor( AutomationElement target ) 204AutomationElement root = AutomationElement.RootElement; 205AutomationElement targetAncestor = null;
MS\Internal\Automation\ClientEventManager.cs (25)
51RemoveRootListener(AutomationElement.AutomationFocusChangedEvent, Tracker.Focus, eventCallback); 56internal static void AddListener(AutomationElement rawEl, Delegate eventCallback, EventListener l) 79if (_winEventTrackers[(int)Tracker.BoundingRect] == null && HasProperty(AutomationElement.BoundingRectangleProperty, l.Properties)) 93if ( _winEventTrackers [(int)Tracker.MenuOpenedOrClosed] == null && (l.EventId == AutomationElement.MenuOpenedEvent || l.EventId == AutomationElement.MenuClosedEvent) ) 150internal static void RemoveListener( AutomationEvent eventId, AutomationElement el, Delegate eventCallback ) 189if (HasProperty(AutomationElement.BoundingRectangleProperty, l.Properties)) 194if( eventId == AutomationElement.MenuOpenedEvent || eventId == AutomationElement.MenuClosedEvent ) 217RemovePropertyTracker(AutomationElement.BoundingRectangleProperty, Tracker.BoundingRect); 271if (l.EventListener.EventId == AutomationElement.MenuOpenedEvent || l.EventListener.EventId == AutomationElement.MenuClosedEvent) 404internal static void RaiseEventInThisClientOnly(AutomationEvent eventId, AutomationElement rawEl, AutomationEventArgs e) 412AutomationElement el = rawEl; 474AddListener( AutomationElement.RootElement, eventCallback, l ); 498RemoveListener(eventId, AutomationElement.RootElement, eventCallback); 547private static void OnWindowHideOrClose( IntPtr hwnd, AutomationElement rawEl, int [] runtimeId ) 564if ( l.EventId == AutomationElement.StructureChangedEvent ) 605RaiseEventInThisClientOnly(AutomationElement.StructureChangedEvent, runtimeId, e); 610private static void OnWindowShowOrOpen( IntPtr hwnd, AutomationElement rawEl ) 627if ( l.EventId == AutomationElement.StructureChangedEvent ) 662RaiseEventInThisClientOnly(AutomationElement.StructureChangedEvent, rawEl, e); 668private static void OnMenuEvent( AutomationElement rawEl, bool menuHasOpened ) 670AutomationEvent eventId = menuHasOpened ? AutomationElement.MenuOpenedEvent : AutomationElement.MenuClosedEvent;
MS\Internal\Automation\ClientSideQueueItem.cs (4)
24internal ClientSideQueueItem(Delegate clientCallback, AutomationElement srcEl, UiaCoreApi.UiaCacheRequest request, AutomationEventArgs e) 46AutomationElement src; 59if (!(src == null && _e.EventId == AutomationElement.AutomationFocusChangedEvent)) 75private AutomationElement _srcEl; // the source element
MS\Internal\Automation\EventListenerClientSide.cs (13)
25internal EventListenerClientSide(AutomationElement elRoot, Delegate clientCallback, EventListener l) 63if (e.EventId == AutomationElement.AutomationFocusChangedEvent) 83internal bool IsListeningFor(AutomationEvent eventId, AutomationElement el, Delegate clientCallback) 111internal bool WithinScope(AutomationElement el) 115Misc.Compare(_refRid, AutomationElement.RootElement.GetRuntimeId())) 122AutomationElement elThis = AutomationElement; 134AutomationElement elParent; 172Misc.Compare(_refRid, AutomationElement.RootElement.GetRuntimeId())) 221internal AutomationElement AutomationElement 261private bool IsChildOf(AutomationElement elPossibleParent, AutomationElement el) 266AutomationElement elPossibleChild = TreeWalker.RawViewWalker.GetParent(el); 291private AutomationElement _refElement;
MS\Internal\Automation\FocusTracker.cs (6)
87AutomationElement srcEl = GetFocusedElementFromWinEvent(hwnd, idObject, idChild); 103if (!(bool)srcEl.GetCurrentPropertyValue(AutomationElement.HasKeyboardFocusProperty)) 110ClientEventManager.RaiseEventInThisClientOnly(AutomationElement.AutomationFocusChangedEvent, srcEl, e); 120private AutomationElement GetFocusedElementFromWinEvent(IntPtr hwnd, int idObject, int idChild) 182return AutomationElement.Wrap(hnode); 187return AutomationElement.FromHandle(hwnd);
MS\Internal\Automation\HwndProxyElementProvider.cs (9)
89if (idProp == AutomationElement.AutomationIdProperty) 108else if (idProp == AutomationElement.ClassNameProperty) 112else if (idProp == AutomationElement.NameProperty) 135else if (idProp == AutomationElement.IsEnabledProperty) 139else if (idProp == AutomationElement.ProcessIdProperty) 152else if( idProp == AutomationElement.NativeWindowHandleProperty ) 157else if (idProp == AutomationElement.HasKeyboardFocusProperty) 168else if (idProp == AutomationElement.FrameworkIdProperty) 172else if (idProp == AutomationElement.ControlTypeProperty)
MS\Internal\Automation\InvokeHandlers.cs (1)
55internal static void InvokeClientHandler(Delegate clientCallback, AutomationElement srcEl, AutomationEventArgs args)
MS\Internal\Automation\MenuTracker.cs (3)
14internal delegate void MenuHandler( AutomationElement rawEl, bool menuHasOpened ); 46AutomationElement rawEl = null; 68rawEl = AutomationElement.FromHandle( hwnd );
MS\Internal\Automation\Misc.cs (3)
59internal static bool Compare(AutomationElement el1, AutomationElement el2) 136internal 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[]), new AutomationElement[]{} ), 350new AutomationPropertyInfo( convertToElement, GridItemPattern.ContainingGridProperty, typeof(AutomationElement), null ), 362new AutomationPropertyInfo( convertToElement, SelectionItemPattern.SelectionContainerProperty, typeof(AutomationElement), null ), 363new AutomationPropertyInfo( convertToElementArray, TablePattern.RowHeadersProperty, typeof(AutomationElement []), new AutomationElement [0] ), 364new AutomationPropertyInfo( convertToElementArray, TablePattern.ColumnHeadersProperty, typeof(AutomationElement []), new AutomationElement [0] ), 366new AutomationPropertyInfo( convertToElementArray, TableItemPattern.RowHeaderItemsProperty, typeof(AutomationElement []), new AutomationElement [0] ), 367new AutomationPropertyInfo( convertToElementArray, TableItemPattern.ColumnHeaderItemsProperty, typeof(AutomationElement []), new AutomationElement [0] ), 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)
228if (val == null || val == AutomationElement.NotSupported || UiaCoreApi.IsErrorMarker(val, false/*throwException*/))
MS\Internal\Automation\WindowHideOrCloseTracker.cs (3)
17internal delegate void WindowHideOrCloseHandler( IntPtr hwnd, AutomationElement rawEl, int[] runtimeId ); 69AutomationElement rawEl; 80rawEl = AutomationElement.FromHandle( hwnd );
MS\Internal\Automation\WindowInteractionStateTracker.cs (3)
82AutomationElement rawEl = AutomationElement.FromHandle(hwnd); 115ClientEventManager.RaiseEventInThisClientOnly(AutomationElement.AutomationPropertyChangedEvent, rawEl, e);
MS\Internal\Automation\WindowShowOrOpenTracker.cs (3)
17internal delegate void WindowShowOrOpenHandler( IntPtr hwnd, AutomationElement rawEl ); 79AutomationElement rawEl = AutomationElement.FromHandle( hwnd );
MS\Internal\Automation\WindowVisualStateTracker.cs (3)
82AutomationElement rawEl = AutomationElement.FromHandle(hwnd); 110ClientEventManager.RaiseEventInThisClientOnly(AutomationElement.AutomationPropertyChangedEvent, rawEl, e);
System\Windows\Automation\Automation.cs (24)
35new PropertyCondition( AutomationElement.IsControlElementProperty, false) ); 41new PropertyCondition( AutomationElement.IsControlElementProperty, false), 42new PropertyCondition( AutomationElement.IsContentElementProperty, false))); 64public static bool Compare(AutomationElement el1, AutomationElement el2) 121AutomationElement element, 128Misc.ValidateArgument( eventId != AutomationElement.AutomationFocusChangedEvent, nameof(SR.EventIdMustNotBeAutomationFocusChanged) ); 129Misc.ValidateArgument( eventId != AutomationElement.StructureChangedEvent, nameof(SR.EventIdMustNotBeStructureChanged) ); 130Misc.ValidateArgument( eventId != AutomationElement.AutomationPropertyChangedEvent, nameof(SR.EventIdMustNotBeAutomationPropertyChanged) ); 141if ( Misc.Compare( element, AutomationElement.RootElement ) ) 159object val = element.GetCurrentPropertyValue(AutomationElement.NativeWindowHandleProperty); 190AutomationElement element, 196Misc.ValidateArgument( eventId != AutomationElement.AutomationFocusChangedEvent, nameof(SR.EventIdMustNotBeAutomationFocusChanged) ); 197Misc.ValidateArgument( eventId != AutomationElement.StructureChangedEvent, nameof(SR.EventIdMustNotBeStructureChanged) ); 198Misc.ValidateArgument( eventId != AutomationElement.AutomationPropertyChangedEvent, nameof(SR.EventIdMustNotBeAutomationPropertyChanged) ); 212AutomationElement element, // reference element for listening to the event 235EventListener l = new EventListener(AutomationElement.AutomationPropertyChangedEvent, scope, properties, CacheRequest.CurrentUiaCacheRequest); 245AutomationElement element, // reference element being listened to 253ClientEventManager.RemoveListener(AutomationElement.AutomationPropertyChangedEvent, element, eventHandler); 262public static void AddStructureChangedEventHandler(AutomationElement element, TreeScope scope, StructureChangedEventHandler eventHandler) 268EventListener l = new EventListener(AutomationElement.StructureChangedEvent, scope, null, CacheRequest.CurrentUiaCacheRequest); 278public static void RemoveStructureChangedEventHandler(AutomationElement element, StructureChangedEventHandler eventHandler) 284ClientEventManager.RemoveListener(AutomationElement.StructureChangedEvent, element, eventHandler); 298EventListener l = new EventListener(AutomationElement.AutomationFocusChangedEvent,
System\Windows\Automation\AutomationElement.cs (44)
46_runtimeId = LookupCachedValue(AutomationElement.RuntimeIdProperty, false, true) as int[]; 74internal static AutomationElement Wrap(SafeNodeHandle hnode) 307AutomationElement el = obj as AutomationElement; 348public static bool operator ==(AutomationElement left, AutomationElement right) 365public static bool operator !=(AutomationElement left, AutomationElement right) 390int [] val = LookupCachedValue(AutomationElement.RuntimeIdProperty, false, true) as int[]; 413public static AutomationElement FromPoint(Point pt) 423public static AutomationElement FromHandle(IntPtr hwnd) 451public static AutomationElement FromLocalProvider(IRawElementProviderSimple localImpl) 455return AutomationElement.Wrap(UiaCoreApi.UiaNodeFromProvider(localImpl)); 507if (value != AutomationElement.NotSupported) 521value = AutomationElement.NotSupported; 650if (val == AutomationElement.NotSupported && !ignoreDefaultValue) 727public AutomationElement GetUpdatedCache(CacheRequest request) 747public AutomationElement FindFirst(TreeScope scope, Condition condition) 776AutomationElement[] els = new AutomationElement[responses.Length]; 849object canReceiveFocus = GetCurrentPropertyValue(AutomationElement.IsKeyboardFocusableProperty); 872object ptClickable = GetCurrentPropertyValue(AutomationElement.ClickablePointProperty); 889AutomationElement scan = AutomationElement.FromPoint((Point)ptClickable); 904if (ClickablePoint.HitTestForClickablePoint( (AutomationElement)this, out pt) ) 938public static AutomationElement RootElement 957public static AutomationElement FocusedElement 1025public AutomationElement CachedParent 1069AutomationElement scan = _cachedFirstChild; 1076AutomationElement[] children = new AutomationElement[childCount]; 1111internal AutomationElement Navigate(NavigateDirection direction, Condition condition, CacheRequest request) 1125internal AutomationElement Normalize(Condition condition, CacheRequest request ) 1153internal void SetCachedParent(AutomationElement cachedParent) 1162internal void SetCachedFirstChild(AutomationElement cachedFirstChild) 1167internal void SetCachedNextSibling(AutomationElement cachedNextSibling) 1269private static AutomationElement DrillForPointOrFocus(bool atPoint, Point pt, UiaCoreApi.UiaCacheRequest cacheRequest) 1342private AutomationElement _cachedParent; 1343private AutomationElement _cachedFirstChild; 1344private AutomationElement _cachedNextSibling; 1371internal AutomationElementInformation(AutomationElement el, bool useCache) 1425public AutomationElement LabeledBy { get { return (AutomationElement) _el.GetPatternPropertyValue(LabeledByProperty, _useCache); } } 1470private AutomationElement _el; // AutomationElement that contains the cache or live reference
System\Windows\Automation\AutomationElementCollection.cs (4)
29internal AutomationElementCollection(AutomationElement[] elements) 48public AutomationElement this[int index] 79public void CopyTo(AutomationElement[] array, int index) 138private AutomationElement[] _elements;
System\Windows\Automation\AutomationFocusChangedEventArgs.cs (1)
49: base(AutomationElement.AutomationFocusChangedEvent)
System\Windows\Automation\BasePattern.cs (2)
21internal AutomationElement _el; 24internal BasePattern( AutomationElement el, SafePatternHandle hPattern )
System\Windows\Automation\CacheRequest.cs (2)
106_properties.Add(AutomationElement.RuntimeIdProperty); 410_defaultUiaCacheRequest = new UiaCoreApi.UiaCacheRequest(Automation.ControlViewCondition, TreeScope.Element, new AutomationProperty[] { AutomationElement.RuntimeIdProperty }, new AutomationPattern[] { }, AutomationElementMode.Full);
System\Windows\Automation\DockPattern.cs (4)
28private DockPattern(AutomationElement el, SafePatternHandle hPattern, bool cached) 141internal static object Wrap(AutomationElement el, SafePatternHandle hPattern, bool cached) 178internal DockPatternInformation(AutomationElement el, bool useCache) 214private AutomationElement _el; // AutomationElement that contains the cache or live reference
System\Windows\Automation\ExpandCollapsePattern.cs (4)
26private ExpandCollapsePattern(AutomationElement el, SafePatternHandle hPattern, bool cached) 148internal static object Wrap(AutomationElement el, SafePatternHandle hPattern, bool cached) 193internal ExpandCollapsePatternInformation( AutomationElement el, bool useCache ) 229private AutomationElement _el; // AutomationElement that contains the cache or live reference
System\Windows\Automation\GridItemPattern.cs (6)
30internal GridItemPattern(AutomationElement el, SafePatternHandle hPattern, bool cached) 149internal static object Wrap(AutomationElement el, SafePatternHandle hPattern, bool cached) 194internal GridItemPatternInformation(AutomationElement el, bool useCache) 260public AutomationElement ContainingGrid 264return (AutomationElement)_el.GetPatternPropertyValue(ContainingGridProperty, _useCache); 278private AutomationElement _el; // AutomationElement that contains the cache or live reference
System\Windows\Automation\GridPattern.cs (6)
26internal GridPattern(AutomationElement el, SafePatternHandle hPattern, bool cached) 69public AutomationElement GetItem(int row, int column) 72return AutomationElement.Wrap(hNode); 145internal static object Wrap(AutomationElement el, SafePatternHandle hPattern, bool cached) 190internal GridPatternInformation(AutomationElement el, bool useCache) 239private AutomationElement _el; // AutomationElement that contains the cache or live reference
System\Windows\Automation\InvokePattern.cs (2)
35private InvokePattern(AutomationElement el, SafePatternHandle hPattern) 104internal static object Wrap(AutomationElement el, SafePatternHandle hPattern, bool cached)
System\Windows\Automation\ItemContainerPattern.cs (9)
29private ItemContainerPattern(AutomationElement el, SafePatternHandle hPattern) 84public AutomationElement FindItemByProperty(AutomationElement startAfter, AutomationProperty property, object value) 111AutomationElement wrappedElement = AutomationElement.Wrap(hNode); 137if (value != AutomationElement.NotSupported && 145if (value is AutomationElement) 150value = ((AutomationElement)value).GetRuntimeId(); 183static internal object Wrap(AutomationElement el, SafePatternHandle hPattern, bool cached)
System\Windows\Automation\MultipleViewPattern.cs (4)
26private MultipleViewPattern(AutomationElement el, SafePatternHandle hPattern, bool cached) 154internal static object Wrap(AutomationElement el, SafePatternHandle hPattern, bool cached) 199internal MultipleViewPatternInformation(AutomationElement el, bool useCache) 241private AutomationElement _el; // AutomationElement that contains the cache or live reference
System\Windows\Automation\PropertyCondition.cs (3)
135if (val != AutomationElement.NotSupported && 148if (val is AutomationElement) 153val = ((AutomationElement)val).GetRuntimeId();
System\Windows\Automation\RangeValuePattern.cs (4)
33private RangeValuePattern( AutomationElement el, SafePatternHandle hPattern, bool cached ) 174static internal object Wrap(AutomationElement el, SafePatternHandle hPattern, bool cached) 219internal RangeValuePatternInformation(AutomationElement el, bool useCache) 408private AutomationElement _el; // AutomationElement that contains the cache or live reference
System\Windows\Automation\ScrollItemPattern.cs (2)
28private ScrollItemPattern(AutomationElement el, SafePatternHandle hPattern) 79static internal object Wrap(AutomationElement el, SafePatternHandle hPattern, bool cached)
System\Windows\Automation\ScrollPattern.cs (4)
28private ScrollPattern(AutomationElement el, SafePatternHandle hPattern, bool cached) 194static internal object Wrap(AutomationElement el, SafePatternHandle hPattern, bool cached) 239internal ScrollPatternInformation(AutomationElement el, bool useCache) 332private AutomationElement _el; // AutomationElement that contains the cache or live reference
System\Windows\Automation\SelectionItemPattern.cs (6)
28private SelectionItemPattern(AutomationElement el, SafePatternHandle hPattern, bool cached) 177internal static object Wrap(AutomationElement el, SafePatternHandle hPattern, bool cached) 222internal SelectionItemPatternInformation(AutomationElement el, bool useCache) 255public AutomationElement SelectionContainer 259return (AutomationElement)_el.GetPatternPropertyValue(SelectionContainerProperty, _useCache); 273private AutomationElement _el; // AutomationElement that contains the cache or live reference
System\Windows\Automation\SelectionPattern.cs (6)
28private SelectionPattern(AutomationElement el, SafePatternHandle hPattern, bool cached) 148internal static object Wrap(AutomationElement el, SafePatternHandle hPattern, bool cached) 193internal SelectionPatternInformation(AutomationElement el, bool useCache) 214public AutomationElement[] GetSelection() 216return (AutomationElement[])_el.GetPatternPropertyValue(SelectionProperty, _useCache); 265private AutomationElement _el; // AutomationElement that contains the cache or live reference
System\Windows\Automation\SynchronizedInputPattern.cs (2)
29private SynchronizedInputPattern(AutomationElement el, SafePatternHandle hPattern) 110internal static object Wrap(AutomationElement el, SafePatternHandle hPattern, bool cached)
System\Windows\Automation\TableItemPattern.cs (10)
29private TableItemPattern(AutomationElement el, SafePatternHandle hPattern, bool cached) 138internal static new object Wrap(AutomationElement el, SafePatternHandle hPattern, bool cached) 182internal TableItemPatternInformation(AutomationElement el, bool useCache) 248public AutomationElement ContainingGrid 252return (AutomationElement)_el.GetPatternPropertyValue(ContainingGridProperty, _useCache); 257public AutomationElement[] GetRowHeaderItems() 259return (AutomationElement[])_el.GetPatternPropertyValue(RowHeaderItemsProperty, _useCache); 263public AutomationElement[] GetColumnHeaderItems() 265return (AutomationElement[])_el.GetPatternPropertyValue(ColumnHeaderItemsProperty, _useCache); 278private AutomationElement _el; // AutomationElement that contains the cache or live reference
System\Windows\Automation\TablePattern.cs (8)
28private TablePattern(AutomationElement el, SafePatternHandle hPattern, bool cached) 128internal static new object Wrap(AutomationElement el, SafePatternHandle hPattern, bool cached) 172internal TablePatternInformation(AutomationElement el, bool useCache) 190public AutomationElement[] GetRowHeaders() 192return (AutomationElement[])_el.GetPatternPropertyValue(RowHeadersProperty, _useCache); 196public AutomationElement[] GetColumnHeaders() 198return (AutomationElement[])_el.GetPatternPropertyValue(ColumnHeadersProperty, _useCache); 242private AutomationElement _el; // AutomationElement that contains the cache or live reference
System\Windows\Automation\Text\TextRange.cs (7)
247else if (obj != AutomationElement.NotSupported && ai.ObjectConverter != null) 275public AutomationElement GetEnclosingElement() 277return AutomationElement.Wrap(UiaCoreApi.TextRange_GetEnclosingElement(_hTextRange)); 401public AutomationElement[] GetChildren() 404AutomationElement[] wrappedChildren = new AutomationElement[rawChildren.Length]; 408wrappedChildren[i] = AutomationElement.Wrap(hnode);
System\Windows\Automation\TextPattern.cs (5)
30internal TextPattern(AutomationElement el, SafePatternHandle hPattern) 199public TextPatternRange RangeFromChild(AutomationElement childElement) 218Rect rect = (Rect)_element.GetCurrentPropertyValue(AutomationElement.BoundingRectangleProperty); 272static internal object Wrap(AutomationElement el, SafePatternHandle hPattern, bool cached) 299private AutomationElement _element;
System\Windows\Automation\TogglePattern.cs (4)
28private TogglePattern(AutomationElement el, SafePatternHandle hPattern, bool cached) 142static internal object Wrap(AutomationElement el, SafePatternHandle hPattern, bool cached) 187internal TogglePatternInformation(AutomationElement el, bool useCache) 223private AutomationElement _el; // AutomationElement that contains the cache or live reference
System\Windows\Automation\TransformPattern.cs (4)
26private TransformPattern(AutomationElement el, SafePatternHandle hPattern, bool cached) 176internal static object Wrap(AutomationElement el, SafePatternHandle hPattern, bool cached) 221internal TransformPatternInformation(AutomationElement el, bool useCache) 275private AutomationElement _el; // AutomationElement that contains the cache or live reference
System\Windows\Automation\TreeWalker.cs (24)
86public AutomationElement GetParent(AutomationElement element) 101public AutomationElement GetFirstChild(AutomationElement element) 116public AutomationElement GetLastChild(AutomationElement element) 131public AutomationElement GetNextSibling(AutomationElement element) 146public AutomationElement GetPreviousSibling(AutomationElement element) 171public AutomationElement Normalize(AutomationElement element) 189public AutomationElement GetParent(AutomationElement element, CacheRequest request) 207public AutomationElement GetFirstChild(AutomationElement element, CacheRequest request) 225public AutomationElement GetLastChild(AutomationElement element, CacheRequest request) 243public AutomationElement GetNextSibling(AutomationElement element, CacheRequest request) 261public AutomationElement GetPreviousSibling(AutomationElement element, CacheRequest request) 289public AutomationElement Normalize(AutomationElement element, CacheRequest request)
System\Windows\Automation\ValuePattern.cs (4)
29internal ValuePattern(AutomationElement el, SafePatternHandle hPattern, bool cached) 164static internal object Wrap(AutomationElement el, SafePatternHandle hPattern, bool cached) 209internal ValuePatternInformation(AutomationElement el, bool useCache) 260private AutomationElement _el; // AutomationElement that contains the cache or live reference
System\Windows\Automation\VirtualizedItemPattern.cs (2)
28private VirtualizedItemPattern(AutomationElement el, SafePatternHandle hPattern) 80static internal object Wrap(AutomationElement el, SafePatternHandle hPattern, bool cached)
System\Windows\Automation\WindowPattern.cs (4)
30private WindowPattern(AutomationElement el, SafePatternHandle hPattern, bool cached) 203internal static object Wrap(AutomationElement el, SafePatternHandle hPattern, bool cached) 248internal WindowPatternInformation(AutomationElement el, bool useCache) 330private AutomationElement _el; // AutomationElement that contains the cache or live reference
UIAutomationClientSideProviders (139)
MS\Internal\AutomationProxies\EventManager.cs (3)
441if (propertyValue != null && propertyValue != AutomationElement.NotSupported) 509_objectIdWindow.Add(AutomationElement.StructureChangedEvent, new RaiseEvent(HandleStructureChangedEventWindow)); 536_objectIdClient.Add(AutomationElement.StructureChangedEvent, new RaiseEvent(HandleStructureChangedEventClient));
MS\Internal\AutomationProxies\MSAAEventDispatcher.cs (5)
200MaybeFirePropertyChangeEvent(null, AutomationElement.BoundingRectangleProperty, eventTable, hwnd, idObject, idChild, false); 204MaybeFirePropertyChangeEvent(null, AutomationElement.NameProperty, eventTable, hwnd, idObject, idChild, true); 232MaybeFirePropertyChangeEvent(null, AutomationElement.HelpTextProperty, eventTable, hwnd, idObject, idChild, true); 262return eventId == AutomationElement.AutomationPropertyChangedEvent ? properties : new AutomationIdentifier[] { eventId }; 316if (eventTable.ContainsKey(AutomationElement.StructureChangedEvent) && !IsClientObject(idObject, idChild))
MS\Internal\AutomationProxies\MSAANativeProvider.cs (11)
420object isOffscreenProperty = GetPropertyValue(AutomationElement.IsOffscreenProperty); 893if (idProp == AutomationElement.AccessKeyProperty) 898else if (idProp == AutomationElement.NameProperty) 903else if (idProp == AutomationElement.ControlTypeProperty) 911else if (idProp == AutomationElement.IsEnabledProperty) 915else if (idProp == AutomationElement.HelpTextProperty) 920else if (idProp == AutomationElement.ProcessIdProperty) 926else if (idProp == AutomationElement.BoundingRectangleProperty) 942else if (idProp == AutomationElement.IsPasswordProperty) 946else if (idProp == AutomationElement.HasKeyboardFocusProperty) 950else if (idProp == AutomationElement.IsOffscreenProperty)
MS\Internal\AutomationProxies\NonClientArea.cs (1)
88if (idProp == AutomationElement.IsEnabledProperty)
MS\Internal\AutomationProxies\ProxyHwnd.cs (12)
75if (eventId == AutomationElement.AutomationPropertyChangedEvent) 105if (eventId == AutomationElement.AutomationPropertyChangedEvent) 135if ((bool)GetElementProperty(AutomationElement.IsKeyboardFocusableProperty)) 150if (idProp == AutomationElement.AutomationIdProperty) 159else if (idProp == AutomationElement.NameProperty) 207else if (idProp == AutomationElement.LabeledByProperty && _fControlHasLabel) 210object name = GetElementProperty(AutomationElement.NameProperty); 227else if (idProp == AutomationElement.IsOffscreenProperty) 352if (idProp == AutomationElement.HasKeyboardFocusProperty) 356else if (idProp == AutomationElement.NameProperty) 364else if (idProp == AutomationElement.IsOffscreenProperty) 442else if (idEvent == AutomationElement.StructureChangedEvent)
MS\Internal\AutomationProxies\ProxySimple.cs (19)
184if (idProp == AutomationElement.LocalizedControlTypeProperty) 188else if(idProp == AutomationElement.ControlTypeProperty) 192else if (idProp == AutomationElement.IsContentElementProperty) 196else if (idProp == AutomationElement.NameProperty) 200else if (idProp == AutomationElement.AccessKeyProperty) 204else if (idProp == AutomationElement.IsEnabledProperty) 208else if (idProp == AutomationElement.IsKeyboardFocusableProperty) 212else if (idProp == AutomationElement.ProcessIdProperty) 220else if (idProp == AutomationElement.ClickablePointProperty) 231return AutomationElement.NotSupported; 233else if (idProp == AutomationElement.HasKeyboardFocusProperty) 241else if (idProp == AutomationElement.AutomationIdProperty) 249else if (idProp == AutomationElement.IsOffscreenProperty) 253else if (idProp == AutomationElement.HelpTextProperty) 257else if (idProp == AutomationElement.FrameworkIdProperty) 274if (SafeNativeMethods.IsWindowVisible(_hwnd) && (bool)GetElementProperty(AutomationElement.IsEnabledProperty)) 315if ((bool)parent.GetElementProperty(AutomationElement.IsOffscreenProperty)) 338if (GetParent() == null && (bool)GetElementProperty(AutomationElement.IsKeyboardFocusableProperty)) 538object isKeyboardFocusableProperty = GetElementProperty(AutomationElement.IsKeyboardFocusableProperty);
MS\Internal\AutomationProxies\WindowsButton.cs (2)
250if (idProp == AutomationElement.AccessKeyProperty) 260else if (idProp == AutomationElement.IsEnabledProperty)
MS\Internal\AutomationProxies\WindowsComboBox.cs (3)
148if (idProp == AutomationElement.NameProperty) 298if (eventId == AutomationElement.AutomationPropertyChangedEvent) 336if (eventId == AutomationElement.AutomationPropertyChangedEvent)
MS\Internal\AutomationProxies\WindowsContainer.cs (1)
77if (idProp == AutomationElement.IsControlElementProperty)
MS\Internal\AutomationProxies\WindowsEditBox.cs (5)
134if ((bool)GetElementProperty(AutomationElement.IsKeyboardFocusableProperty)) 183if (idProp == AutomationElement.IsControlElementProperty) 191else if (idProp == AutomationElement.IsPasswordProperty) 195else if (idProp == AutomationElement.NameProperty) 206return AutomationElement.NotSupported;
MS\Internal\AutomationProxies\WindowsEditBoxRange.cs (1)
646rval = AutomationElement.NotSupported;
MS\Internal\AutomationProxies\WindowsListBox.cs (3)
172if (idProp == AutomationElement.IsControlElementProperty) 176else if (idProp == AutomationElement.IsOffscreenProperty) 499if ((idProp as AutomationEvent) == AutomationElement.StructureChangedEvent &&
MS\Internal\AutomationProxies\WindowsListView.cs (2)
124if ((eventId == NativeMethods.EventObjectReorder) && (idProp as AutomationEvent) == AutomationElement.StructureChangedEvent) 1969else if ((eventId == NativeMethods.EventObjectDestroy || eventId == NativeMethods.EventObjectCreate) && automationEvent == AutomationElement.StructureChangedEvent)
MS\Internal\AutomationProxies\WindowsListViewGroup.cs (1)
81if (idProp == AutomationElement.ClassNameProperty)
MS\Internal\AutomationProxies\WindowsListViewItem.cs (1)
219if (propertyId == AutomationElement.ClickablePointProperty)
MS\Internal\AutomationProxies\WindowsListViewItemCheckBox.cs (1)
71if (idProp == AutomationElement.IsOffscreenProperty)
MS\Internal\AutomationProxies\WindowsListViewItemStartMenu.cs (2)
83if (idProp == AutomationElement.AccessKeyProperty) 104else if (idProp == AutomationElement.HasKeyboardFocusProperty)
MS\Internal\AutomationProxies\WindowsListViewSubItem.cs (2)
133if (idProp == AutomationElement.IsOffscreenProperty) 148else if (idProp == AutomationElement.HasKeyboardFocusProperty)
MS\Internal\AutomationProxies\WindowsMenu.cs (13)
351if (idProp == AutomationElement.NameProperty) 1046if (propertyValue != null && propertyValue != AutomationElement.NotSupported) 1057if (eventId != AutomationElement.AutomationPropertyChangedEvent) 1375if (idProp == AutomationElement.AcceleratorKeyProperty) 1381else if (idProp == AutomationElement.IsEnabledProperty) 1389else if (idProp == AutomationElement.AccessKeyProperty) 1393else if (idProp == AutomationElement.IsKeyboardFocusableProperty) 1397else if (idProp == AutomationElement.HasKeyboardFocusProperty) 1402else if (idProp == AutomationElement.IsOffscreenProperty) 2915if (idProp == AutomationElement.ControlTypeProperty) 2920if (idProp == AutomationElement.AutomationIdProperty) 2926if (idProp == AutomationElement.NativeWindowHandleProperty) 2931return AutomationElement.NotSupported;
MS\Internal\AutomationProxies\WindowsNonControl.cs (1)
63if (idProp == AutomationElement.IsControlElementProperty)
MS\Internal\AutomationProxies\WindowsRebar.cs (2)
357if (idProp == AutomationElement.IsControlElementProperty) 509if (idProp == AutomationElement.IsControlElementProperty)
MS\Internal\AutomationProxies\WindowsRichEdit.cs (3)
132if (idProp == AutomationElement.IsPasswordProperty) 136else if (idProp == AutomationElement.NameProperty) 147return AutomationElement.NotSupported;
MS\Internal\AutomationProxies\WindowsRichEditRange.cs (3)
601rval = AutomationElement.NotSupported; 644return AutomationElement.NotSupported; 785return AutomationElement.NotSupported;
MS\Internal\AutomationProxies\WindowsScrollBar.cs (6)
192if (idProp == AutomationElement.IsControlElementProperty) 196else if (idProp == AutomationElement.IsKeyboardFocusableProperty) 204(bool)GetElementProperty(AutomationElement.IsEnabledProperty)) 214else if (idProp == AutomationElement.IsEnabledProperty) 220else if (idProp == AutomationElement.OrientationProperty) 224else if (idProp == AutomationElement.AutomationIdProperty)
MS\Internal\AutomationProxies\WindowsScrollBarBits.cs (2)
110if (idProp == AutomationElement.IsControlElementProperty) 114else if (idProp == AutomationElement.IsEnabledProperty)
MS\Internal\AutomationProxies\WindowsSlider.cs (1)
89if (idProp == AutomationElement.OrientationProperty)
MS\Internal\AutomationProxies\WindowsSpinner.cs (2)
130if (idProp == AutomationElement.ClickablePointProperty) 134else if (idProp == AutomationElement.HasKeyboardFocusProperty)
MS\Internal\AutomationProxies\WindowsStatic.cs (1)
132if (idProp == AutomationElement.AccessKeyProperty)
MS\Internal\AutomationProxies\WindowsSysHeader.cs (4)
195if (idProp == AutomationElement.OrientationProperty) 231bool isOffscreen = (bool) headerItem.GetElementProperty(AutomationElement.IsOffscreenProperty); 420if (idProp == AutomationElement.AccessKeyProperty) 424else if (idProp == AutomationElement.IsOffscreenProperty)
MS\Internal\AutomationProxies\WindowsTab.cs (5)
148if (idProp == AutomationElement.IsControlElementProperty) 152else if (idProp == AutomationElement.OrientationProperty) 957if (idProp == AutomationElement.AccessKeyProperty && _windowsForms != WindowsFormsHelper.FormControlState.True) 961else if (idProp == AutomationElement.IsControlElementProperty) 1423if (idProp == AutomationElement.IsControlElementProperty)
MS\Internal\AutomationProxies\WindowsTitleBar.cs (2)
279if (idProp == AutomationElement.AutomationIdProperty) 313else if (idProp == AutomationElement.IsEnabledProperty)
MS\Internal\AutomationProxies\WindowsToolbar.cs (5)
92if (eventId == NativeMethods.EventObjectDestroy && idProp == AutomationElement.StructureChangedEvent) 407_fIsKeyboardFocusable = (bool)parent.GetElementProperty(AutomationElement.IsKeyboardFocusableProperty); 462if (idProp == AutomationElement.AccessKeyProperty) 466else if (idProp == AutomationElement.IsControlElementProperty) 470else if (idProp == AutomationElement.IsEnabledProperty)
MS\Internal\AutomationProxies\WindowsToolbarItemAsMenuItem.cs (1)
100if (idProp == AutomationElement.HasKeyboardFocusProperty)
MS\Internal\AutomationProxies\WindowsTooltip.cs (7)
82if( eventId == AutomationElement.ToolTipOpenedEvent ) 84AutomationEventArgs e = new AutomationEventArgs(AutomationElement.ToolTipOpenedEvent); 85AutomationInteropProvider.RaiseAutomationEvent(AutomationElement.ToolTipOpenedEvent, this, e); 87else if( eventId == AutomationElement.ToolTipClosedEvent ) 100if( eventId != AutomationElement.ToolTipClosedEvent ) 161AutomationEventArgs e = new AutomationEventArgs( AutomationElement.ToolTipClosedEvent ); 162AutomationInteropProvider.RaiseAutomationEvent( AutomationElement.ToolTipClosedEvent, wtv, e );
MS\Internal\AutomationProxies\WindowsTreeView.cs (4)
106if (((idProp as AutomationEvent) == AutomationElement.StructureChangedEvent && el is TreeViewItem) && !(eventId == NativeMethods.EventObjectDestroy || eventId == NativeMethods.EventObjectCreate)) 352if (idEvent == AutomationElement.StructureChangedEvent) 847if (idProp == AutomationElement.IsOffscreenProperty) 898if ((bool)parent.GetElementProperty(AutomationElement.IsOffscreenProperty))
MS\Internal\AutomationProxies\WindowsUpDown.cs (2)
118if (idProp == AutomationElement.IsControlElementProperty) 475if (idProp == AutomationElement.IsControlElementProperty)