2 instantiations of AutomationElement
UIAutomationClient (2)
MS\Internal\Automation\CacheHelper.cs (1)
193AutomationElement node = new AutomationElement(hnode, cachedValues, cachedValueIndex, cacheRequest);
System\Windows\Automation\AutomationElement.cs (1)
99return new AutomationElement(hnode, null, 0, null);
548 references to AutomationElement
UIAutomationClient (409)
MS\Internal\Automation\AutomationPatternInfo.cs (1)
21internal delegate object WrapObjectClientSide(AutomationElement el, SafePatternHandle hPattern, bool cached);
MS\Internal\Automation\BoundingRectTracker.cs (4)
110AutomationElement rawEl = AutomationElement.FromHandle(hwnd); 120AutomationElement.BoundingRectangleProperty, 130ClientEventManager.RaiseEventInThisClientOnly(AutomationElement.AutomationPropertyChangedEvent, rawEl, e);
MS\Internal\Automation\CacheHelper.cs (6)
77internal static AutomationElement BuildAutomationElementsFromResponse( 104AutomationElement root = ParseTreeDescription(response.TreeStructure, response.RequestedData, 151private static AutomationElement ParseTreeDescription( string treeDescription, 193AutomationElement node = new AutomationElement(hnode, cachedValues, cachedValueIndex, cacheRequest); 209AutomationElement prevChild = null; 214AutomationElement child = ParseTreeDescription( treeDescription, properties,
MS\Internal\Automation\CalloutQueueItem.cs (1)
59AutomationElement el = CacheHelper.BuildAutomationElementsFromResponse(_cacheRequest, _cacheResponse);
MS\Internal\Automation\ClickablePoint.cs (18)
34public static bool HitTestForClickablePoint(AutomationElement el, out Point pt) 52AutomationElement hitElement; 102private static bool TryLinePattern( out Point pt, ref Rect rect, AutomationElement el) 135private static bool TrySparsePattern( out Point pt, ref Rect rect, AutomationElement el) 159private static bool TryPattern(double x, double y, out Point pt, ref Rect rect, AutomationElement el ) 175private static bool TryPoint( ref Point pt, AutomationElement el ) 177AutomationElement hitEl; 181private static bool TryPoint( ref Point pt, AutomationElement el, out AutomationElement hitEl ) 185hitEl = AutomationElement.FromPoint(pt); 193private static bool IsTopLevelWindowObscuring( AutomationElement target, Rect targetRect, AutomationElement hitTarget) 201AutomationElement hitTargetAncestor = GetTopLevelAncestor(hitTarget); 213private static AutomationElement GetTopLevelAncestor( AutomationElement target ) 215AutomationElement root = AutomationElement.RootElement; 216AutomationElement targetAncestor = null;
MS\Internal\Automation\ClientEventManager.cs (25)
64RemoveRootListener(AutomationElement.AutomationFocusChangedEvent, Tracker.Focus, eventCallback); 69internal static void AddListener(AutomationElement rawEl, Delegate eventCallback, EventListener l) 92if (_winEventTrackers[(int)Tracker.BoundingRect] == null && HasProperty(AutomationElement.BoundingRectangleProperty, l.Properties)) 106if ( _winEventTrackers [(int)Tracker.MenuOpenedOrClosed] == null && (l.EventId == AutomationElement.MenuOpenedEvent || l.EventId == AutomationElement.MenuClosedEvent) ) 163internal static void RemoveListener( AutomationEvent eventId, AutomationElement el, Delegate eventCallback ) 205if (HasProperty(AutomationElement.BoundingRectangleProperty, l.Properties)) 210if( eventId == AutomationElement.MenuOpenedEvent || eventId == AutomationElement.MenuClosedEvent ) 233RemovePropertyTracker(AutomationElement.BoundingRectangleProperty, Tracker.BoundingRect); 287if (l.EventListener.EventId == AutomationElement.MenuOpenedEvent || l.EventListener.EventId == AutomationElement.MenuClosedEvent) 420internal static void RaiseEventInThisClientOnly(AutomationEvent eventId, AutomationElement rawEl, AutomationEventArgs e) 428AutomationElement el = rawEl; 490AddListener( AutomationElement.RootElement, eventCallback, l ); 514RemoveListener(eventId, AutomationElement.RootElement, eventCallback); 563private static void OnWindowHideOrClose( IntPtr hwnd, AutomationElement rawEl, int [] runtimeId ) 581if ( l.EventId == AutomationElement.StructureChangedEvent ) 622RaiseEventInThisClientOnly(AutomationElement.StructureChangedEvent, runtimeId, e); 627private static void OnWindowShowOrOpen( IntPtr hwnd, AutomationElement rawEl ) 645if ( l.EventId == AutomationElement.StructureChangedEvent ) 680RaiseEventInThisClientOnly(AutomationElement.StructureChangedEvent, rawEl, e); 686private static void OnMenuEvent( AutomationElement rawEl, bool menuHasOpened ) 688AutomationEvent eventId = menuHasOpened ? AutomationElement.MenuOpenedEvent : AutomationElement.MenuClosedEvent;
MS\Internal\Automation\ClientSideQueueItem.cs (4)
37internal ClientSideQueueItem(Delegate clientCallback, AutomationElement srcEl, UiaCoreApi.UiaCacheRequest request, AutomationEventArgs e) 59AutomationElement src; 72if (!(src == null && _e.EventId == AutomationElement.AutomationFocusChangedEvent)) 88private AutomationElement _srcEl; // the source element
MS\Internal\Automation\EventListenerClientSide.cs (13)
35internal EventListenerClientSide(AutomationElement elRoot, Delegate clientCallback, EventListener l) 73if (e.EventId == AutomationElement.AutomationFocusChangedEvent) 93internal bool IsListeningFor(AutomationEvent eventId, AutomationElement el, Delegate clientCallback) 121internal bool WithinScope(AutomationElement el) 125Misc.Compare(_refRid, AutomationElement.RootElement.GetRuntimeId())) 132AutomationElement elThis = AutomationElement; 144AutomationElement elParent; 182Misc.Compare(_refRid, AutomationElement.RootElement.GetRuntimeId())) 231internal AutomationElement AutomationElement 271private bool IsChildOf(AutomationElement elPossibleParent, AutomationElement el) 276AutomationElement elPossibleChild = TreeWalker.RawViewWalker.GetParent(el); 301private AutomationElement _refElement;
MS\Internal\Automation\FocusTracker.cs (6)
95AutomationElement srcEl = GetFocusedElementFromWinEvent(hwnd, idObject, idChild); 111if (!(bool)srcEl.GetCurrentPropertyValue(AutomationElement.HasKeyboardFocusProperty)) 118ClientEventManager.RaiseEventInThisClientOnly(AutomationElement.AutomationFocusChangedEvent, srcEl, e); 128private AutomationElement GetFocusedElementFromWinEvent(IntPtr hwnd, int idObject, int idChild) 190return AutomationElement.Wrap(hnode); 195return AutomationElement.FromHandle(hwnd);
MS\Internal\Automation\HwndProxyElementProvider.cs (9)
105if (idProp == AutomationElement.AutomationIdProperty) 124else if (idProp == AutomationElement.ClassNameProperty) 128else if (idProp == AutomationElement.NameProperty) 151else if (idProp == AutomationElement.IsEnabledProperty) 155else if (idProp == AutomationElement.ProcessIdProperty) 170else if( idProp == AutomationElement.NativeWindowHandleProperty ) 175else if (idProp == AutomationElement.HasKeyboardFocusProperty) 186else if (idProp == AutomationElement.FrameworkIdProperty) 190else if (idProp == AutomationElement.ControlTypeProperty)
MS\Internal\Automation\InvokeHandlers.cs (1)
66internal static void InvokeClientHandler(Delegate clientCallback, AutomationElement srcEl, AutomationEventArgs args)
MS\Internal\Automation\MenuTracker.cs (3)
24internal delegate void MenuHandler( AutomationElement rawEl, bool menuHasOpened ); 56AutomationElement rawEl = null; 78rawEl = AutomationElement.FromHandle( hwnd );
MS\Internal\Automation\Misc.cs (3)
78internal static bool Compare(AutomationElement el1, AutomationElement el2) 154internal static object WrapInterfaceOnClientSide(AutomationElement el, SafePatternHandle hPattern, AutomationPattern pattern)
MS\Internal\Automation\Schema.cs (91)
197return AutomationElement.Wrap(hnode); 204AutomationElement[] els = new AutomationElement[objArr.Length]; 214els[i] = AutomationElement.Wrap(hnode); 252new AutomationPropertyInfo( null, AutomationElement.RuntimeIdProperty, typeof(int[]), null ), 253new AutomationPropertyInfo( convertToRect, AutomationElement.BoundingRectangleProperty, typeof(Rect), Rect.Empty ), 255new AutomationPropertyInfo( null, AutomationElement.ProcessIdProperty, typeof(int), 0 ), 259new AutomationPropertyInfo( convertToControlType, AutomationElement.ControlTypeProperty, typeof(ControlType), ControlType.Custom ), 260new AutomationPropertyInfo( null, AutomationElement.LocalizedControlTypeProperty, typeof(string), "" ), 261new AutomationPropertyInfo( null, AutomationElement.NameProperty, typeof(string), "" ), 262new AutomationPropertyInfo( null, AutomationElement.AcceleratorKeyProperty, typeof(string), "" ), 263new AutomationPropertyInfo( null, AutomationElement.AccessKeyProperty, typeof(string), "" ), 264new AutomationPropertyInfo( convertToBool, AutomationElement.HasKeyboardFocusProperty, typeof(bool), false ), 265new AutomationPropertyInfo( convertToBool, AutomationElement.IsKeyboardFocusableProperty, typeof(bool), false ), 266new AutomationPropertyInfo( convertToBool, AutomationElement.IsEnabledProperty, typeof(bool), false ), 267new AutomationPropertyInfo( null, AutomationElement.AutomationIdProperty, typeof(string), "" ), 268new AutomationPropertyInfo( null, AutomationElement.ClassNameProperty, typeof(string), "" ), 269new AutomationPropertyInfo( null, AutomationElement.HelpTextProperty, typeof(string), "" ), 270new AutomationPropertyInfo( convertToPoint, AutomationElement.ClickablePointProperty, typeof(Point), null ), 271new AutomationPropertyInfo( convertToCultureInfo, AutomationElement.CultureProperty, typeof(CultureInfo), null ), 272new AutomationPropertyInfo( convertToBool, AutomationElement.IsControlElementProperty, typeof(bool), true ), 273new AutomationPropertyInfo( convertToBool, AutomationElement.IsContentElementProperty, typeof(bool), true ), 274new AutomationPropertyInfo( convertToElement, AutomationElement.LabeledByProperty, typeof(AutomationElement), null ), 275new AutomationPropertyInfo( convertToBool, AutomationElement.IsPasswordProperty, typeof(bool), false ), 276new AutomationPropertyInfo( null, AutomationElement.NativeWindowHandleProperty, typeof(int), 0 ), 277new AutomationPropertyInfo( null, AutomationElement.ItemTypeProperty, typeof(string), "" ), 278new AutomationPropertyInfo( convertToBool, AutomationElement.IsOffscreenProperty, typeof(bool), false ), 279new AutomationPropertyInfo( convertToOrientationType, AutomationElement.OrientationProperty, typeof(OrientationType), OrientationType.None ), 280new AutomationPropertyInfo( null, AutomationElement.FrameworkIdProperty, typeof(string), "" ), 281new AutomationPropertyInfo( convertToBool, AutomationElement.IsRequiredForFormProperty, typeof(bool), false ), 282new AutomationPropertyInfo( null, AutomationElement.ItemStatusProperty, typeof(string), "" ), 283new AutomationPropertyInfo( null, AutomationElement.SizeOfSetProperty, typeof(int), -1 ), 284new AutomationPropertyInfo( null, AutomationElement.PositionInSetProperty, typeof(int), -1 ), 288new AutomationPropertyInfo( convertToBool, AutomationElement.IsInvokePatternAvailableProperty, typeof(bool), false ), 289new AutomationPropertyInfo( convertToBool, AutomationElement.IsDockPatternAvailableProperty, typeof(bool), false ), 290new AutomationPropertyInfo( convertToBool, AutomationElement.IsExpandCollapsePatternAvailableProperty, typeof(bool), false ), 291new AutomationPropertyInfo( convertToBool, AutomationElement.IsGridItemPatternAvailableProperty, typeof(bool), false ), 292new AutomationPropertyInfo( convertToBool, AutomationElement.IsGridPatternAvailableProperty, typeof(bool), false ), 293new AutomationPropertyInfo( convertToBool, AutomationElement.IsMultipleViewPatternAvailableProperty, typeof(bool), false ), 294new AutomationPropertyInfo( convertToBool, AutomationElement.IsRangeValuePatternAvailableProperty, typeof(bool), false ), 295new AutomationPropertyInfo( convertToBool, AutomationElement.IsScrollPatternAvailableProperty, typeof(bool), false ), 296new AutomationPropertyInfo( convertToBool, AutomationElement.IsVirtualizedItemPatternAvailableProperty,typeof(bool), false ), 297new AutomationPropertyInfo( convertToBool, AutomationElement.IsItemContainerPatternAvailableProperty, typeof(bool), false ), 298new AutomationPropertyInfo( convertToBool, AutomationElement.IsScrollItemPatternAvailableProperty, typeof(bool), false ), 299new AutomationPropertyInfo( convertToBool, AutomationElement.IsSelectionItemPatternAvailableProperty, typeof(bool), false ), 300new AutomationPropertyInfo( convertToBool, AutomationElement.IsSelectionPatternAvailableProperty, typeof(bool), false ), 301new AutomationPropertyInfo( convertToBool, AutomationElement.IsSynchronizedInputPatternAvailableProperty, typeof(bool), false ), 302new AutomationPropertyInfo( convertToBool, AutomationElement.IsTablePatternAvailableProperty, typeof(bool), false ), 303new AutomationPropertyInfo( convertToBool, AutomationElement.IsTableItemPatternAvailableProperty, typeof(bool), false ), 304new AutomationPropertyInfo( convertToBool, AutomationElement.IsTextPatternAvailableProperty, typeof(bool), false ), 305new AutomationPropertyInfo( convertToBool, AutomationElement.IsTogglePatternAvailableProperty, typeof(bool), false ), 306new AutomationPropertyInfo( convertToBool, AutomationElement.IsTransformPatternAvailableProperty, typeof(bool), false ), 307new AutomationPropertyInfo( convertToBool, AutomationElement.IsValuePatternAvailableProperty, typeof(bool), false ), 308new AutomationPropertyInfo( convertToBool, AutomationElement.IsWindowPatternAvailableProperty, typeof(bool), false ), 326new AutomationPropertyInfo( convertToElementArray, SelectionPattern.SelectionProperty, typeof(AutomationElement[]), new AutomationElement[]{} ), 335new AutomationPropertyInfo( convertToElement, GridItemPattern.ContainingGridProperty, typeof(AutomationElement), null ), 347new AutomationPropertyInfo( convertToElement, SelectionItemPattern.SelectionContainerProperty, typeof(AutomationElement), null ), 348new AutomationPropertyInfo( convertToElementArray, TablePattern.RowHeadersProperty, typeof(AutomationElement []), new AutomationElement [0] ), 349new AutomationPropertyInfo( convertToElementArray, TablePattern.ColumnHeadersProperty, typeof(AutomationElement []), new AutomationElement [0] ), 351new AutomationPropertyInfo( convertToElementArray, TableItemPattern.RowHeaderItemsProperty, typeof(AutomationElement []), new AutomationElement [0] ), 352new AutomationPropertyInfo( convertToElementArray, TableItemPattern.ColumnHeaderItemsProperty, typeof(AutomationElement []), new AutomationElement [0] ), 362AutomationElement.RuntimeIdProperty, 363AutomationElement.BoundingRectangleProperty, 364AutomationElement.ProcessIdProperty, 365AutomationElement.IsControlElementProperty, 366AutomationElement.IsContentElementProperty, 368AutomationElement.ControlTypeProperty, 369AutomationElement.LocalizedControlTypeProperty, 370AutomationElement.NameProperty, 371AutomationElement.AcceleratorKeyProperty, 372AutomationElement.AccessKeyProperty, 373AutomationElement.HasKeyboardFocusProperty, 374AutomationElement.IsKeyboardFocusableProperty, 375AutomationElement.IsEnabledProperty, 376AutomationElement.AutomationIdProperty, 377AutomationElement.ClassNameProperty, 378AutomationElement.HelpTextProperty, 379AutomationElement.LabeledByProperty, 380AutomationElement.IsPasswordProperty, 381AutomationElement.ItemTypeProperty, 382AutomationElement.IsOffscreenProperty, 383AutomationElement.OrientationProperty, 384AutomationElement.FrameworkIdProperty, 385AutomationElement.IsRequiredForFormProperty, 386AutomationElement.ItemStatusProperty
MS\Internal\Automation\UiaCoreAPI.cs (1)
241if (val == null || val == AutomationElement.NotSupported || UiaCoreApi.IsErrorMarker(val, false/*throwException*/))
MS\Internal\Automation\WindowHideOrCloseTracker.cs (3)
26internal delegate void WindowHideOrCloseHandler( IntPtr hwnd, AutomationElement rawEl, int[] runtimeId ); 78AutomationElement rawEl; 89rawEl = AutomationElement.FromHandle( hwnd );
MS\Internal\Automation\WindowInteractionStateTracker.cs (3)
93AutomationElement rawEl = AutomationElement.FromHandle(hwnd); 126ClientEventManager.RaiseEventInThisClientOnly(AutomationElement.AutomationPropertyChangedEvent, rawEl, e);
MS\Internal\Automation\WindowShowOrOpenTracker.cs (3)
28internal delegate void WindowShowOrOpenHandler( IntPtr hwnd, AutomationElement rawEl ); 90AutomationElement rawEl = AutomationElement.FromHandle( hwnd );
MS\Internal\Automation\WindowVisualStateTracker.cs (3)
90AutomationElement rawEl = AutomationElement.FromHandle(hwnd); 118ClientEventManager.RaiseEventInThisClientOnly(AutomationElement.AutomationPropertyChangedEvent, rawEl, e);
System\Windows\Automation\Automation.cs (24)
54new PropertyCondition( AutomationElement.IsControlElementProperty, false) ); 60new PropertyCondition( AutomationElement.IsControlElementProperty, false), 61new PropertyCondition( AutomationElement.IsContentElementProperty, false))); 88public static bool Compare(AutomationElement el1, AutomationElement el2) 157AutomationElement element, 164Misc.ValidateArgument( eventId != AutomationElement.AutomationFocusChangedEvent, SRID.EventIdMustNotBeAutomationFocusChanged ); 165Misc.ValidateArgument( eventId != AutomationElement.StructureChangedEvent,SRID.EventIdMustNotBeStructureChanged ); 166Misc.ValidateArgument( eventId != AutomationElement.AutomationPropertyChangedEvent, SRID.EventIdMustNotBeAutomationPropertyChanged ); 177if ( Misc.Compare( element, AutomationElement.RootElement ) ) 198object val = element.GetCurrentPropertyValue(AutomationElement.NativeWindowHandleProperty); 234AutomationElement element, 240Misc.ValidateArgument( eventId != AutomationElement.AutomationFocusChangedEvent, SRID.EventIdMustNotBeAutomationFocusChanged ); 241Misc.ValidateArgument( eventId != AutomationElement.StructureChangedEvent, SRID.EventIdMustNotBeStructureChanged ); 242Misc.ValidateArgument( eventId != AutomationElement.AutomationPropertyChangedEvent, SRID.EventIdMustNotBeAutomationPropertyChanged ); 263AutomationElement element, // reference element for listening to the event 286EventListener l = new EventListener(AutomationElement.AutomationPropertyChangedEvent, scope, properties, CacheRequest.CurrentUiaCacheRequest); 301AutomationElement element, // reference element being listened to 311ClientEventManager.RemoveListener(AutomationElement.AutomationPropertyChangedEvent, element, eventHandler); 325public static void AddStructureChangedEventHandler(AutomationElement element, TreeScope scope, StructureChangedEventHandler eventHandler) 331EventListener l = new EventListener(AutomationElement.StructureChangedEvent, scope, null, CacheRequest.CurrentUiaCacheRequest); 346public static void RemoveStructureChangedEventHandler(AutomationElement element, StructureChangedEventHandler eventHandler) 353ClientEventManager.RemoveListener(AutomationElement.StructureChangedEvent, element, eventHandler); 372EventListener l = new EventListener(AutomationElement.AutomationFocusChangedEvent,
System\Windows\Automation\AutomationElement.cs (44)
63_runtimeId = LookupCachedValue(AutomationElement.RuntimeIdProperty, false, true) as int[]; 92internal static AutomationElement Wrap(SafeNodeHandle hnode) 309AutomationElement el = obj as AutomationElement; 350public static bool operator ==(AutomationElement left, AutomationElement right) 367public static bool operator !=(AutomationElement left, AutomationElement right) 397int [] val = LookupCachedValue(AutomationElement.RuntimeIdProperty, false, true) as int[]; 425public static AutomationElement FromPoint(Point pt) 440public static AutomationElement FromHandle(IntPtr hwnd) 468public static AutomationElement FromLocalProvider(IRawElementProviderSimple localImpl) 472return AutomationElement.Wrap(UiaCoreApi.UiaNodeFromProvider(localImpl)); 537if (value != AutomationElement.NotSupported) 551value = AutomationElement.NotSupported; 700if (val == AutomationElement.NotSupported && !ignoreDefaultValue) 787public AutomationElement GetUpdatedCache(CacheRequest request) 807public AutomationElement FindFirst(TreeScope scope, Condition condition) 836AutomationElement[] els = new AutomationElement[responses.Length]; 924object canReceiveFocus = GetCurrentPropertyValue(AutomationElement.IsKeyboardFocusableProperty); 952object ptClickable = GetCurrentPropertyValue(AutomationElement.ClickablePointProperty); 969AutomationElement scan = AutomationElement.FromPoint((Point)ptClickable); 984if (ClickablePoint.HitTestForClickablePoint( (AutomationElement)this, out pt) ) 1028public static AutomationElement RootElement 1052public static AutomationElement FocusedElement 1121public AutomationElement CachedParent 1171AutomationElement scan = _cachedFirstChild; 1178AutomationElement[] children = new AutomationElement[childCount]; 1213internal AutomationElement Navigate(NavigateDirection direction, Condition condition, CacheRequest request) 1227internal AutomationElement Normalize(Condition condition, CacheRequest request ) 1255internal void SetCachedParent(AutomationElement cachedParent) 1264internal void SetCachedFirstChild(AutomationElement cachedFirstChild) 1269internal void SetCachedNextSibling(AutomationElement cachedNextSibling) 1371private static AutomationElement DrillForPointOrFocus(bool atPoint, Point pt, UiaCoreApi.UiaCacheRequest cacheRequest) 1442private AutomationElement _cachedParent; 1443private AutomationElement _cachedFirstChild; 1444private AutomationElement _cachedNextSibling; 1471internal AutomationElementInformation(AutomationElement el, bool useCache) 1525public AutomationElement LabeledBy { get { return (AutomationElement) _el.GetPatternPropertyValue(LabeledByProperty, _useCache); } } 1570private AutomationElement _el; // AutomationElement that contains the cache or live reference
System\Windows\Automation\AutomationElementCollection.cs (4)
39internal AutomationElementCollection(AutomationElement[] elements) 58public AutomationElement this[int index] 89public void CopyTo(AutomationElement[] array, int index) 148private AutomationElement[] _elements;
System\Windows\Automation\AutomationFocusChangedEventArgs.cs (1)
61: base(AutomationElement.AutomationFocusChangedEvent)
System\Windows\Automation\BasePattern.cs (2)
32internal AutomationElement _el; 35internal BasePattern( AutomationElement el, SafePatternHandle hPattern )
System\Windows\Automation\CacheRequest.cs (2)
115_properties.Add(AutomationElement.RuntimeIdProperty); 419_defaultUiaCacheRequest = new UiaCoreApi.UiaCacheRequest(Automation.ControlViewCondition, TreeScope.Element, new AutomationProperty[] { AutomationElement.RuntimeIdProperty }, new AutomationPattern[] { }, AutomationElementMode.Full);
System\Windows\Automation\DockPattern.cs (4)
39private DockPattern(AutomationElement el, SafePatternHandle hPattern, bool cached) 157internal static object Wrap(AutomationElement el, SafePatternHandle hPattern, bool cached) 194internal DockPatternInformation(AutomationElement el, bool useCache) 235private AutomationElement _el; // AutomationElement that contains the cache or live reference
System\Windows\Automation\ExpandCollapsePattern.cs (4)
36private ExpandCollapsePattern(AutomationElement el, SafePatternHandle hPattern, bool cached) 168internal static object Wrap(AutomationElement el, SafePatternHandle hPattern, bool cached) 213internal ExpandCollapsePatternInformation( AutomationElement el, bool useCache ) 254private AutomationElement _el; // AutomationElement that contains the cache or live reference
System\Windows\Automation\GridItemPattern.cs (6)
40internal GridItemPattern(AutomationElement el, SafePatternHandle hPattern, bool cached) 159internal static object Wrap(AutomationElement el, SafePatternHandle hPattern, bool cached) 204internal GridItemPatternInformation(AutomationElement el, bool useCache) 295public AutomationElement ContainingGrid 299return (AutomationElement)_el.GetPatternPropertyValue(ContainingGridProperty, _useCache); 313private AutomationElement _el; // AutomationElement that contains the cache or live reference
System\Windows\Automation\GridPattern.cs (6)
36internal GridPattern(AutomationElement el, SafePatternHandle hPattern, bool cached) 84public AutomationElement GetItem(int row, int column) 87return AutomationElement.Wrap(hNode); 160internal static object Wrap(AutomationElement el, SafePatternHandle hPattern, bool cached) 205internal GridPatternInformation(AutomationElement el, bool useCache) 264private AutomationElement _el; // AutomationElement that contains the cache or live reference
System\Windows\Automation\InvokePattern.cs (2)
47private InvokePattern(AutomationElement el, SafePatternHandle hPattern) 121internal static object Wrap(AutomationElement el, SafePatternHandle hPattern, bool cached)
System\Windows\Automation\ItemContainerPattern.cs (9)
40private ItemContainerPattern(AutomationElement el, SafePatternHandle hPattern) 95public AutomationElement FindItemByProperty(AutomationElement startAfter, AutomationProperty property, object value) 122AutomationElement wrappedElement = AutomationElement.Wrap(hNode); 148if (value != AutomationElement.NotSupported && 156if (value is AutomationElement) 161value = ((AutomationElement)value).GetRuntimeId(); 196static internal object Wrap(AutomationElement el, SafePatternHandle hPattern, bool cached)
System\Windows\Automation\MultipleViewPattern.cs (4)
37private MultipleViewPattern(AutomationElement el, SafePatternHandle hPattern, bool cached) 175internal static object Wrap(AutomationElement el, SafePatternHandle hPattern, bool cached) 220internal MultipleViewPatternInformation(AutomationElement el, bool useCache) 272private AutomationElement _el; // AutomationElement that contains the cache or live reference
System\Windows\Automation\PropertyCondition.cs (3)
148if (val != AutomationElement.NotSupported && 161if (val is AutomationElement) 166val = ((AutomationElement)val).GetRuntimeId();
System\Windows\Automation\RangeValuePattern.cs (4)
44private RangeValuePattern( AutomationElement el, SafePatternHandle hPattern, bool cached ) 190static internal object Wrap(AutomationElement el, SafePatternHandle hPattern, bool cached) 235internal RangeValuePatternInformation(AutomationElement el, bool useCache) 454private AutomationElement _el; // AutomationElement that contains the cache or live reference
System\Windows\Automation\ScrollItemPattern.cs (2)
39private ScrollItemPattern(AutomationElement el, SafePatternHandle hPattern) 90static internal object Wrap(AutomationElement el, SafePatternHandle hPattern, bool cached)
System\Windows\Automation\ScrollPattern.cs (4)
38private ScrollPattern(AutomationElement el, SafePatternHandle hPattern, bool cached) 224static internal object Wrap(AutomationElement el, SafePatternHandle hPattern, bool cached) 269internal ScrollPatternInformation(AutomationElement el, bool useCache) 392private AutomationElement _el; // AutomationElement that contains the cache or live reference
System\Windows\Automation\SelectionItemPattern.cs (6)
39private SelectionItemPattern(AutomationElement el, SafePatternHandle hPattern, bool cached) 203internal static object Wrap(AutomationElement el, SafePatternHandle hPattern, bool cached) 248internal SelectionItemPatternInformation(AutomationElement el, bool useCache) 291public AutomationElement SelectionContainer 295return (AutomationElement)_el.GetPatternPropertyValue(SelectionContainerProperty, _useCache); 309private AutomationElement _el; // AutomationElement that contains the cache or live reference
System\Windows\Automation\SelectionPattern.cs (6)
40private SelectionPattern(AutomationElement el, SafePatternHandle hPattern, bool cached) 160internal static object Wrap(AutomationElement el, SafePatternHandle hPattern, bool cached) 205internal SelectionPatternInformation(AutomationElement el, bool useCache) 231public AutomationElement[] GetSelection() 233return (AutomationElement[])_el.GetPatternPropertyValue(SelectionProperty, _useCache); 292private AutomationElement _el; // AutomationElement that contains the cache or live reference
System\Windows\Automation\SynchronizedInputPattern.cs (2)
39private SynchronizedInputPattern(AutomationElement el, SafePatternHandle hPattern) 120internal static object Wrap(AutomationElement el, SafePatternHandle hPattern, bool cached)
System\Windows\Automation\TableItemPattern.cs (10)
39private TableItemPattern(AutomationElement el, SafePatternHandle hPattern, bool cached) 148internal static new object Wrap(AutomationElement el, SafePatternHandle hPattern, bool cached) 192internal TableItemPatternInformation(AutomationElement el, bool useCache) 283public AutomationElement ContainingGrid 287return (AutomationElement)_el.GetPatternPropertyValue(ContainingGridProperty, _useCache); 297public AutomationElement[] GetRowHeaderItems() 299return (AutomationElement[])_el.GetPatternPropertyValue(RowHeaderItemsProperty, _useCache); 308public AutomationElement[] GetColumnHeaderItems() 310return (AutomationElement[])_el.GetPatternPropertyValue(ColumnHeaderItemsProperty, _useCache); 323private AutomationElement _el; // AutomationElement that contains the cache or live reference
System\Windows\Automation\TablePattern.cs (8)
38private TablePattern(AutomationElement el, SafePatternHandle hPattern, bool cached) 138internal static new object Wrap(AutomationElement el, SafePatternHandle hPattern, bool cached) 182internal TablePatternInformation(AutomationElement el, bool useCache) 205public AutomationElement[] GetRowHeaders() 207return (AutomationElement[])_el.GetPatternPropertyValue(RowHeadersProperty, _useCache); 216public AutomationElement[] GetColumnHeaders() 218return (AutomationElement[])_el.GetPatternPropertyValue(ColumnHeadersProperty, _useCache); 277private AutomationElement _el; // AutomationElement that contains the cache or live reference
System\Windows\Automation\Text\TextRange.cs (7)
261else if (obj != AutomationElement.NotSupported && ai.ObjectConverter != null) 289public AutomationElement GetEnclosingElement() 291return AutomationElement.Wrap(UiaCoreApi.TextRange_GetEnclosingElement(_hTextRange)); 415public AutomationElement[] GetChildren() 418AutomationElement[] wrappedChildren = new AutomationElement[rawChildren.Length]; 422wrappedChildren[i] = AutomationElement.Wrap(hnode);
System\Windows\Automation\TextPattern.cs (5)
41internal TextPattern(AutomationElement el, SafePatternHandle hPattern) 210public TextPatternRange RangeFromChild(AutomationElement childElement) 232Rect rect = (Rect)_element.GetCurrentPropertyValue(AutomationElement.BoundingRectangleProperty); 286static internal object Wrap(AutomationElement el, SafePatternHandle hPattern, bool cached) 313private AutomationElement _element;
System\Windows\Automation\TogglePattern.cs (4)
38private TogglePattern(AutomationElement el, SafePatternHandle hPattern, bool cached) 157static internal object Wrap(AutomationElement el, SafePatternHandle hPattern, bool cached) 202internal TogglePatternInformation(AutomationElement el, bool useCache) 243private AutomationElement _el; // AutomationElement that contains the cache or live reference
System\Windows\Automation\TransformPattern.cs (4)
37private TransformPattern(AutomationElement el, SafePatternHandle hPattern, bool cached) 200internal static object Wrap(AutomationElement el, SafePatternHandle hPattern, bool cached) 245internal TransformPatternInformation(AutomationElement el, bool useCache) 314private AutomationElement _el; // AutomationElement that contains the cache or live reference
System\Windows\Automation\TreeWalker.cs (24)
96public AutomationElement GetParent(AutomationElement element) 111public AutomationElement GetFirstChild(AutomationElement element) 126public AutomationElement GetLastChild(AutomationElement element) 141public AutomationElement GetNextSibling(AutomationElement element) 156public AutomationElement GetPreviousSibling(AutomationElement element) 181public AutomationElement Normalize(AutomationElement element) 199public AutomationElement GetParent(AutomationElement element, CacheRequest request) 217public AutomationElement GetFirstChild(AutomationElement element, CacheRequest request) 235public AutomationElement GetLastChild(AutomationElement element, CacheRequest request) 253public AutomationElement GetNextSibling(AutomationElement element, CacheRequest request) 271public AutomationElement GetPreviousSibling(AutomationElement element, CacheRequest request) 299public AutomationElement Normalize(AutomationElement element, CacheRequest request)
System\Windows\Automation\ValuePattern.cs (4)
39internal ValuePattern(AutomationElement el, SafePatternHandle hPattern, bool cached) 179static internal object Wrap(AutomationElement el, SafePatternHandle hPattern, bool cached) 224internal ValuePatternInformation(AutomationElement el, bool useCache) 285private AutomationElement _el; // AutomationElement that contains the cache or live reference
System\Windows\Automation\VirtualizedItemPattern.cs (2)
39private VirtualizedItemPattern(AutomationElement el, SafePatternHandle hPattern) 91static internal object Wrap(AutomationElement el, SafePatternHandle hPattern, bool cached)
System\Windows\Automation\WindowPattern.cs (4)
41private WindowPattern(AutomationElement el, SafePatternHandle hPattern, bool cached) 224internal static object Wrap(AutomationElement el, SafePatternHandle hPattern, bool cached) 269internal WindowPatternInformation(AutomationElement el, bool useCache) 381private AutomationElement _el; // AutomationElement that contains the cache or live reference
UIAutomationClientsideProviders (139)
MS\Internal\AutomationProxies\EventManager.cs (3)
454if (propertyValue != null && propertyValue != AutomationElement.NotSupported) 522_objectIdWindow.Add(AutomationElement.StructureChangedEvent, new RaiseEvent(HandleStructureChangedEventWindow)); 549_objectIdClient.Add(AutomationElement.StructureChangedEvent, new RaiseEvent(HandleStructureChangedEventClient));
MS\Internal\AutomationProxies\MSAAEventDispatcher.cs (5)
213MaybeFirePropertyChangeEvent(null, AutomationElement.BoundingRectangleProperty, eventTable, hwnd, idObject, idChild, false); 217MaybeFirePropertyChangeEvent(null, AutomationElement.NameProperty, eventTable, hwnd, idObject, idChild, true); 246MaybeFirePropertyChangeEvent(null, AutomationElement.HelpTextProperty, eventTable, hwnd, idObject, idChild, true); 271return eventId == AutomationElement.AutomationPropertyChangedEvent ? properties : new AutomationIdentifier[] { eventId }; 325if (eventTable.ContainsKey(AutomationElement.StructureChangedEvent) && !IsClientObject(idObject, idChild))
MS\Internal\AutomationProxies\MSAANativeProvider.cs (11)
445object isOffscreenProperty = GetPropertyValue(AutomationElement.IsOffscreenProperty); 918if (idProp == AutomationElement.AccessKeyProperty) 923else if (idProp == AutomationElement.NameProperty) 928else if (idProp == AutomationElement.ControlTypeProperty) 936else if (idProp == AutomationElement.IsEnabledProperty) 940else if (idProp == AutomationElement.HelpTextProperty) 945else if (idProp == AutomationElement.ProcessIdProperty) 951else if (idProp == AutomationElement.BoundingRectangleProperty) 967else if (idProp == AutomationElement.IsPasswordProperty) 971else if (idProp == AutomationElement.HasKeyboardFocusProperty) 975else if (idProp == AutomationElement.IsOffscreenProperty)
MS\Internal\AutomationProxies\NonClientArea.cs (1)
89if (idProp == AutomationElement.IsEnabledProperty)
MS\Internal\AutomationProxies\ProxyHwnd.cs (12)
94if (eventId == AutomationElement.AutomationPropertyChangedEvent) 124if (eventId == AutomationElement.AutomationPropertyChangedEvent) 154if ((bool)GetElementProperty(AutomationElement.IsKeyboardFocusableProperty)) 169if (idProp == AutomationElement.AutomationIdProperty) 178else if (idProp == AutomationElement.NameProperty) 228else if (idProp == AutomationElement.LabeledByProperty && _fControlHasLabel) 231object name = GetElementProperty(AutomationElement.NameProperty); 248else if (idProp == AutomationElement.IsOffscreenProperty) 373if (idProp == AutomationElement.HasKeyboardFocusProperty) 377else if (idProp == AutomationElement.NameProperty) 385else if (idProp == AutomationElement.IsOffscreenProperty) 463else if (idEvent == AutomationElement.StructureChangedEvent)
MS\Internal\AutomationProxies\ProxySimple.cs (19)
199if (idProp == AutomationElement.LocalizedControlTypeProperty) 203else if(idProp == AutomationElement.ControlTypeProperty) 207else if (idProp == AutomationElement.IsContentElementProperty) 211else if (idProp == AutomationElement.NameProperty) 215else if (idProp == AutomationElement.AccessKeyProperty) 219else if (idProp == AutomationElement.IsEnabledProperty) 223else if (idProp == AutomationElement.IsKeyboardFocusableProperty) 227else if (idProp == AutomationElement.ProcessIdProperty) 235else if (idProp == AutomationElement.ClickablePointProperty) 246return AutomationElement.NotSupported; 248else if (idProp == AutomationElement.HasKeyboardFocusProperty) 256else if (idProp == AutomationElement.AutomationIdProperty) 266else if (idProp == AutomationElement.IsOffscreenProperty) 270else if (idProp == AutomationElement.HelpTextProperty) 274else if (idProp == AutomationElement.FrameworkIdProperty) 291if (SafeNativeMethods.IsWindowVisible(_hwnd) && (bool)GetElementProperty(AutomationElement.IsEnabledProperty)) 332if ((bool)parent.GetElementProperty(AutomationElement.IsOffscreenProperty)) 355if (GetParent() == null && (bool)GetElementProperty(AutomationElement.IsKeyboardFocusableProperty)) 555object isKeyboardFocusableProperty = GetElementProperty(AutomationElement.IsKeyboardFocusableProperty);
MS\Internal\AutomationProxies\WindowsButton.cs (2)
266if (idProp == AutomationElement.AccessKeyProperty) 276else if (idProp == AutomationElement.IsEnabledProperty)
MS\Internal\AutomationProxies\WindowsComboBox.cs (3)
165if (idProp == AutomationElement.NameProperty) 315if (eventId == AutomationElement.AutomationPropertyChangedEvent) 353if (eventId == AutomationElement.AutomationPropertyChangedEvent)
MS\Internal\AutomationProxies\WindowsContainer.cs (1)
94if (idProp == AutomationElement.IsControlElementProperty)
MS\Internal\AutomationProxies\WindowsEditBox.cs (5)
152if ((bool)GetElementProperty(AutomationElement.IsKeyboardFocusableProperty)) 201if (idProp == AutomationElement.IsControlElementProperty) 209else if (idProp == AutomationElement.IsPasswordProperty) 213else if (idProp == AutomationElement.NameProperty) 224return AutomationElement.NotSupported;
MS\Internal\AutomationProxies\WindowsEditBoxRange.cs (1)
671rval = AutomationElement.NotSupported;
MS\Internal\AutomationProxies\WindowsListBox.cs (3)
184if (idProp == AutomationElement.IsControlElementProperty) 188else if (idProp == AutomationElement.IsOffscreenProperty) 511if ((idProp as AutomationEvent) == AutomationElement.StructureChangedEvent &&
MS\Internal\AutomationProxies\WindowsListView.cs (2)
134if ((eventId == NativeMethods.EventObjectReorder) && (idProp as AutomationEvent) == AutomationElement.StructureChangedEvent) 1976else if ((eventId == NativeMethods.EventObjectDestroy || eventId == NativeMethods.EventObjectCreate) && automationEvent == AutomationElement.StructureChangedEvent)
MS\Internal\AutomationProxies\WindowsListViewGroup.cs (1)
90if (idProp == AutomationElement.ClassNameProperty)
MS\Internal\AutomationProxies\WindowsListViewItem.cs (1)
229if (propertyId == AutomationElement.ClickablePointProperty)
MS\Internal\AutomationProxies\WindowsListViewItemCheckBox.cs (1)
78if (idProp == AutomationElement.IsOffscreenProperty)
MS\Internal\AutomationProxies\WindowsListViewItemStartMenu.cs (2)
96if (idProp == AutomationElement.AccessKeyProperty) 117else if (idProp == AutomationElement.HasKeyboardFocusProperty)
MS\Internal\AutomationProxies\WindowsListViewSubItem.cs (2)
141if (idProp == AutomationElement.IsOffscreenProperty) 156else if (idProp == AutomationElement.HasKeyboardFocusProperty)
MS\Internal\AutomationProxies\WindowsMenu.cs (13)
367if (idProp == AutomationElement.NameProperty) 1064if (propertyValue != null && propertyValue != AutomationElement.NotSupported) 1075if (eventId != AutomationElement.AutomationPropertyChangedEvent) 1395if (idProp == AutomationElement.AcceleratorKeyProperty) 1401else if (idProp == AutomationElement.IsEnabledProperty) 1409else if (idProp == AutomationElement.AccessKeyProperty) 1413else if (idProp == AutomationElement.IsKeyboardFocusableProperty) 1417else if (idProp == AutomationElement.HasKeyboardFocusProperty) 1422else if (idProp == AutomationElement.IsOffscreenProperty) 2935if (idProp == AutomationElement.ControlTypeProperty) 2940if (idProp == AutomationElement.AutomationIdProperty) 2946if (idProp == AutomationElement.NativeWindowHandleProperty) 2951return AutomationElement.NotSupported;
MS\Internal\AutomationProxies\WindowsNonControl.cs (1)
77if (idProp == AutomationElement.IsControlElementProperty)
MS\Internal\AutomationProxies\WindowsRebar.cs (2)
373if (idProp == AutomationElement.IsControlElementProperty) 523if (idProp == AutomationElement.IsControlElementProperty)
MS\Internal\AutomationProxies\WindowsRichEdit.cs (3)
148if (idProp == AutomationElement.IsPasswordProperty) 152else if (idProp == AutomationElement.NameProperty) 163return AutomationElement.NotSupported;
MS\Internal\AutomationProxies\WindowsRichEditRange.cs (3)
627rval = AutomationElement.NotSupported; 670return AutomationElement.NotSupported; 811return AutomationElement.NotSupported;
MS\Internal\AutomationProxies\WindowsScrollBar.cs (6)
206if (idProp == AutomationElement.IsControlElementProperty) 210else if (idProp == AutomationElement.IsKeyboardFocusableProperty) 218(bool)GetElementProperty(AutomationElement.IsEnabledProperty)) 228else if (idProp == AutomationElement.IsEnabledProperty) 234else if (idProp == AutomationElement.OrientationProperty) 238else if (idProp == AutomationElement.AutomationIdProperty)
MS\Internal\AutomationProxies\WindowsScrollBarBits.cs (2)
119if (idProp == AutomationElement.IsControlElementProperty) 123else if (idProp == AutomationElement.IsEnabledProperty)
MS\Internal\AutomationProxies\WindowsSlider.cs (1)
105if (idProp == AutomationElement.OrientationProperty)
MS\Internal\AutomationProxies\WindowsSpinner.cs (2)
147if (idProp == AutomationElement.ClickablePointProperty) 151else if (idProp == AutomationElement.HasKeyboardFocusProperty)
MS\Internal\AutomationProxies\WindowsStatic.cs (1)
143if (idProp == AutomationElement.AccessKeyProperty)
MS\Internal\AutomationProxies\WindowsSysHeader.cs (4)
207if (idProp == AutomationElement.OrientationProperty) 243bool isOffscreen = (bool) headerItem.GetElementProperty(AutomationElement.IsOffscreenProperty); 432if (idProp == AutomationElement.AccessKeyProperty) 436else if (idProp == AutomationElement.IsOffscreenProperty)
MS\Internal\AutomationProxies\WindowsTab.cs (5)
148if (idProp == AutomationElement.IsControlElementProperty) 152else if (idProp == AutomationElement.OrientationProperty) 955if (idProp == AutomationElement.AccessKeyProperty && _windowsForms != WindowsFormsHelper.FormControlState.True) 959else if (idProp == AutomationElement.IsControlElementProperty) 1421if (idProp == AutomationElement.IsControlElementProperty)
MS\Internal\AutomationProxies\WindowsTitleBar.cs (2)
291if (idProp == AutomationElement.AutomationIdProperty) 325else if (idProp == AutomationElement.IsEnabledProperty)
MS\Internal\AutomationProxies\WindowsToolbar.cs (5)
102if (eventId == NativeMethods.EventObjectDestroy && idProp == AutomationElement.StructureChangedEvent) 418_fIsKeyboardFocusable = (bool)parent.GetElementProperty(AutomationElement.IsKeyboardFocusableProperty); 473if (idProp == AutomationElement.AccessKeyProperty) 477else if (idProp == AutomationElement.IsControlElementProperty) 481else if (idProp == AutomationElement.IsEnabledProperty)
MS\Internal\AutomationProxies\WindowsToolbarItemAsMenuItem.cs (1)
106if (idProp == AutomationElement.HasKeyboardFocusProperty)
MS\Internal\AutomationProxies\WindowsTooltip.cs (7)
100if( eventId == AutomationElement.ToolTipOpenedEvent ) 102AutomationEventArgs e = new AutomationEventArgs(AutomationElement.ToolTipOpenedEvent); 103AutomationInteropProvider.RaiseAutomationEvent(AutomationElement.ToolTipOpenedEvent, this, e); 105else if( eventId == AutomationElement.ToolTipClosedEvent ) 118if( eventId != AutomationElement.ToolTipClosedEvent ) 179AutomationEventArgs e = new AutomationEventArgs( AutomationElement.ToolTipClosedEvent ); 180AutomationInteropProvider.RaiseAutomationEvent( AutomationElement.ToolTipClosedEvent, wtv, e );
MS\Internal\AutomationProxies\WindowsTreeView.cs (4)
117if (((idProp as AutomationEvent) == AutomationElement.StructureChangedEvent && el is TreeViewItem) && !(eventId == NativeMethods.EventObjectDestroy || eventId == NativeMethods.EventObjectCreate)) 363if (idEvent == AutomationElement.StructureChangedEvent) 858if (idProp == AutomationElement.IsOffscreenProperty) 909if ((bool)parent.GetElementProperty(AutomationElement.IsOffscreenProperty))
MS\Internal\AutomationProxies\WindowsUpDown.cs (2)
135if (idProp == AutomationElement.IsControlElementProperty) 492if (idProp == AutomationElement.IsControlElementProperty)