136 references to Id
PresentationCore (99)
MS\Internal\Automation\EventMap.cs (22)
30if ( id == AutomationElementIdentifiers.ToolTipOpenedEvent.Id 31|| id == AutomationElementIdentifiers.ToolTipClosedEvent.Id 32|| id == AutomationElementIdentifiers.MenuOpenedEvent.Id 33|| id == AutomationElementIdentifiers.MenuClosedEvent.Id 34|| id == AutomationElementIdentifiers.AutomationFocusChangedEvent.Id 35|| id == InvokePatternIdentifiers.InvokedEvent.Id 36|| id == SelectionItemPatternIdentifiers.ElementAddedToSelectionEvent.Id 37|| id == SelectionItemPatternIdentifiers.ElementRemovedFromSelectionEvent.Id 38|| id == SelectionItemPatternIdentifiers.ElementSelectedEvent.Id 39|| id == SelectionPatternIdentifiers.InvalidatedEvent.Id 40|| id == TextPatternIdentifiers.TextSelectionChangedEvent.Id 41|| id == TextPatternIdentifiers.TextChangedEvent.Id 42|| id == AutomationElementIdentifiers.AsyncContentLoadedEvent.Id 43|| id == AutomationElementIdentifiers.AutomationPropertyChangedEvent.Id 44|| id == AutomationElementIdentifiers.StructureChangedEvent.Id 45|| id == SynchronizedInputPatternIdentifiers.InputReachedTargetEvent?.Id 46|| id == SynchronizedInputPatternIdentifiers.InputReachedOtherElementEvent?.Id 47|| id == SynchronizedInputPatternIdentifiers.InputDiscardedEvent?.Id) 59if ( id == AutomationElementIdentifiers.LiveRegionChangedEvent?.Id 60|| id == AutomationElementIdentifiers.NotificationEvent?.Id 61|| id == AutomationElementIdentifiers.ActiveTextPositionChangedEvent?.Id) 114if ((eventObject != null) && (!_eventsTable.ContainsKey(eventObject.Id)))
System\Windows\Automation\Peers\AutomationPeer.cs (77)
2186if(AutomationElementIdentifiers.HeadingLevelProperty != null && propertyId == AutomationElementIdentifiers.HeadingLevelProperty.Id) 2366s_patternInfo[InvokePatternIdentifiers.Pattern.Id] = new PatternInfo(InvokePatternIdentifiers.Pattern.Id, new WrapObject(InvokeProviderWrapper.Wrap), PatternInterface.Invoke); 2367s_patternInfo[SelectionPatternIdentifiers.Pattern.Id] = new PatternInfo(SelectionPatternIdentifiers.Pattern.Id, new WrapObject(SelectionProviderWrapper.Wrap), PatternInterface.Selection); 2368s_patternInfo[ValuePatternIdentifiers.Pattern.Id] = new PatternInfo(ValuePatternIdentifiers.Pattern.Id, new WrapObject(ValueProviderWrapper.Wrap), PatternInterface.Value); 2369s_patternInfo[RangeValuePatternIdentifiers.Pattern.Id] = new PatternInfo(RangeValuePatternIdentifiers.Pattern.Id, new WrapObject(RangeValueProviderWrapper.Wrap), PatternInterface.RangeValue); 2370s_patternInfo[ScrollPatternIdentifiers.Pattern.Id] = new PatternInfo(ScrollPatternIdentifiers.Pattern.Id, new WrapObject(ScrollProviderWrapper.Wrap), PatternInterface.Scroll); 2371s_patternInfo[ScrollItemPatternIdentifiers.Pattern.Id] = new PatternInfo(ScrollItemPatternIdentifiers.Pattern.Id, new WrapObject(ScrollItemProviderWrapper.Wrap), PatternInterface.ScrollItem); 2372s_patternInfo[ExpandCollapsePatternIdentifiers.Pattern.Id] = new PatternInfo(ExpandCollapsePatternIdentifiers.Pattern.Id, new WrapObject(ExpandCollapseProviderWrapper.Wrap), PatternInterface.ExpandCollapse); 2373s_patternInfo[GridPatternIdentifiers.Pattern.Id] = new PatternInfo(GridPatternIdentifiers.Pattern.Id, new WrapObject(GridProviderWrapper.Wrap), PatternInterface.Grid); 2374s_patternInfo[GridItemPatternIdentifiers.Pattern.Id] = new PatternInfo(GridItemPatternIdentifiers.Pattern.Id, new WrapObject(GridItemProviderWrapper.Wrap), PatternInterface.GridItem); 2375s_patternInfo[MultipleViewPatternIdentifiers.Pattern.Id] = new PatternInfo(MultipleViewPatternIdentifiers.Pattern.Id, new WrapObject(MultipleViewProviderWrapper.Wrap), PatternInterface.MultipleView); 2376s_patternInfo[WindowPatternIdentifiers.Pattern.Id] = new PatternInfo(WindowPatternIdentifiers.Pattern.Id, new WrapObject(WindowProviderWrapper.Wrap), PatternInterface.Window); 2377s_patternInfo[SelectionItemPatternIdentifiers.Pattern.Id] = new PatternInfo(SelectionItemPatternIdentifiers.Pattern.Id, new WrapObject(SelectionItemProviderWrapper.Wrap), PatternInterface.SelectionItem); 2378s_patternInfo[DockPatternIdentifiers.Pattern.Id] = new PatternInfo(DockPatternIdentifiers.Pattern.Id, new WrapObject(DockProviderWrapper.Wrap), PatternInterface.Dock); 2379s_patternInfo[TablePatternIdentifiers.Pattern.Id] = new PatternInfo(TablePatternIdentifiers.Pattern.Id, new WrapObject(TableProviderWrapper.Wrap), PatternInterface.Table); 2380s_patternInfo[TableItemPatternIdentifiers.Pattern.Id] = new PatternInfo(TableItemPatternIdentifiers.Pattern.Id, new WrapObject(TableItemProviderWrapper.Wrap), PatternInterface.TableItem); 2381s_patternInfo[TogglePatternIdentifiers.Pattern.Id] = new PatternInfo(TogglePatternIdentifiers.Pattern.Id, new WrapObject(ToggleProviderWrapper.Wrap), PatternInterface.Toggle); 2382s_patternInfo[TransformPatternIdentifiers.Pattern.Id] = new PatternInfo(TransformPatternIdentifiers.Pattern.Id, new WrapObject(TransformProviderWrapper.Wrap), PatternInterface.Transform); 2383s_patternInfo[TextPatternIdentifiers.Pattern.Id] = new PatternInfo(TextPatternIdentifiers.Pattern.Id, new WrapObject(TextProviderWrapper.Wrap), PatternInterface.Text); 2388s_patternInfo[VirtualizedItemPatternIdentifiers.Pattern.Id] = new PatternInfo(VirtualizedItemPatternIdentifiers.Pattern.Id, new WrapObject(VirtualizedItemProviderWrapper.Wrap), PatternInterface.VirtualizedItem); 2390s_patternInfo[ItemContainerPatternIdentifiers.Pattern.Id] = new PatternInfo(ItemContainerPatternIdentifiers.Pattern.Id, new WrapObject(ItemContainerProviderWrapper.Wrap), PatternInterface.ItemContainer); 2393s_patternInfo[SynchronizedInputPatternIdentifiers.Pattern.Id] = new PatternInfo(SynchronizedInputPatternIdentifiers.Pattern.Id, new WrapObject(SynchronizedInputProviderWrapper.Wrap), PatternInterface.SynchronizedInput); 2398s_propertyInfo[AutomationElementIdentifiers.IsControlElementProperty.Id] = new GetProperty(IsControlElement); 2399s_propertyInfo[AutomationElementIdentifiers.ControlTypeProperty.Id] = new GetProperty(GetControlType); 2400s_propertyInfo[AutomationElementIdentifiers.IsContentElementProperty.Id] = new GetProperty(IsContentElement); 2401s_propertyInfo[AutomationElementIdentifiers.LabeledByProperty.Id] = new GetProperty(GetLabeledBy); 2402s_propertyInfo[AutomationElementIdentifiers.NativeWindowHandleProperty.Id] = new GetProperty(GetNativeWindowHandle); 2403s_propertyInfo[AutomationElementIdentifiers.AutomationIdProperty.Id] = new GetProperty(GetAutomationId); 2404s_propertyInfo[AutomationElementIdentifiers.ItemTypeProperty.Id] = new GetProperty(GetItemType); 2405s_propertyInfo[AutomationElementIdentifiers.IsPasswordProperty.Id] = new GetProperty(IsPassword); 2406s_propertyInfo[AutomationElementIdentifiers.LocalizedControlTypeProperty.Id] = new GetProperty(GetLocalizedControlType); 2407s_propertyInfo[AutomationElementIdentifiers.NameProperty.Id] = new GetProperty(GetName); 2408s_propertyInfo[AutomationElementIdentifiers.AcceleratorKeyProperty.Id] = new GetProperty(GetAcceleratorKey); 2409s_propertyInfo[AutomationElementIdentifiers.AccessKeyProperty.Id] = new GetProperty(GetAccessKey); 2410s_propertyInfo[AutomationElementIdentifiers.HasKeyboardFocusProperty.Id] = new GetProperty(HasKeyboardFocus); 2411s_propertyInfo[AutomationElementIdentifiers.IsKeyboardFocusableProperty.Id] = new GetProperty(IsKeyboardFocusable); 2412s_propertyInfo[AutomationElementIdentifiers.IsEnabledProperty.Id] = new GetProperty(IsEnabled); 2413s_propertyInfo[AutomationElementIdentifiers.BoundingRectangleProperty.Id] = new GetProperty(GetBoundingRectangle); 2414s_propertyInfo[AutomationElementIdentifiers.ProcessIdProperty.Id] = new GetProperty(GetCurrentProcessId); 2415s_propertyInfo[AutomationElementIdentifiers.RuntimeIdProperty.Id] = new GetProperty(GetRuntimeId); 2416s_propertyInfo[AutomationElementIdentifiers.ClassNameProperty.Id] = new GetProperty(GetClassName); 2417s_propertyInfo[AutomationElementIdentifiers.HelpTextProperty.Id] = new GetProperty(GetHelpText); 2418s_propertyInfo[AutomationElementIdentifiers.ClickablePointProperty.Id] = new GetProperty(GetClickablePoint); 2419s_propertyInfo[AutomationElementIdentifiers.CultureProperty.Id] = new GetProperty(GetCultureInfo); 2420s_propertyInfo[AutomationElementIdentifiers.IsOffscreenProperty.Id] = new GetProperty(IsOffscreen); 2421s_propertyInfo[AutomationElementIdentifiers.OrientationProperty.Id] = new GetProperty(GetOrientation); 2422s_propertyInfo[AutomationElementIdentifiers.FrameworkIdProperty.Id] = new GetProperty(GetFrameworkId); 2423s_propertyInfo[AutomationElementIdentifiers.IsRequiredForFormProperty.Id] = new GetProperty(IsRequiredForForm); 2424s_propertyInfo[AutomationElementIdentifiers.ItemStatusProperty.Id] = new GetProperty(GetItemStatus); 2427s_propertyInfo[AutomationElementIdentifiers.LiveSettingProperty.Id] = new GetProperty(GetLiveSetting); 2431s_propertyInfo[AutomationElementIdentifiers.ControllerForProperty.Id] = new GetProperty(GetControllerFor); 2435s_propertyInfo[AutomationElementIdentifiers.SizeOfSetProperty.Id] = new GetProperty(GetSizeOfSet); 2439s_propertyInfo[AutomationElementIdentifiers.PositionInSetProperty.Id] = new GetProperty(GetPositionInSet); 2443s_propertyInfo[AutomationElementIdentifiers.HeadingLevelProperty.Id] = new GetProperty(GetHeadingLevel); 2447s_propertyInfo[AutomationElementIdentifiers.IsDialogProperty.Id] = new GetProperty(IsDialog); 2470private static object GetControlType(AutomationPeer peer) { ControlType controlType = peer.GetControlType(); return controlType.Id; }
PresentationFramework (14)
System\Windows\Automation\Peers\CalendarAutomationPeer.cs (5)
497if( propertyId == SelectionItemPatternIdentifiers.IsSelectedProperty.Id) 502else if (propertyId == AutomationElementIdentifiers.NameProperty.Id) 519else if (propertyId == 0 || propertyId == AutomationElementIdentifiers.ControlTypeProperty.Id) 523if (propertyId == AutomationElementIdentifiers.ControlTypeProperty.Id && (int)value != ControlType.Button.Id)
System\Windows\Automation\Peers\ItemsControlAutomationPeer.cs (3)
334if (AutomationElementIdentifiers.NameProperty.Id == id) 336else if (AutomationElementIdentifiers.AutomationIdProperty.Id == id) 338else if (AutomationElementIdentifiers.ControlTypeProperty.Id == id)
System\Windows\Automation\Peers\SelectorAutomationPeer.cs (2)
47if (SelectionItemPatternIdentifiers.IsSelectedProperty.Id == id) 64if (SelectionItemPatternIdentifiers.IsSelectedProperty.Id == propertyId)
System\Windows\Automation\Peers\TreeViewAutomationPeer.cs (2)
117if (SelectionItemPatternIdentifiers.IsSelectedProperty.Id == id) 129if (SelectionItemPatternIdentifiers.IsSelectedProperty.Id == propertyId)
System\Windows\Automation\Peers\TreeViewItemAutomationPeer.cs (2)
195if (SelectionItemPatternIdentifiers.IsSelectedProperty.Id == id) 207if (SelectionItemPatternIdentifiers.IsSelectedProperty.Id == propertyId)
UIAutomationClient (15)
MS\Internal\Automation\ClientEventManager.cs (2)
131ec.EventHandle = UiaCoreApi.UiaAddEvent(rawEl.RawNode, l.EventId.Id, ec.CallbackDelegate, l.TreeScope, PropertyArrayToIntArray(l.Properties), l.CacheRequest); 143propertiesAsInts[i] = properties[i].Id;
MS\Internal\Automation\HwndProxyElementProvider.cs (2)
176return ControlType.Window.Id; 180return ControlType.Pane.Id;
MS\Internal\Automation\UiaCoreApi.cs (2)
148*pdata++ = properties[i].Id; 155*pdata++ = patterns[i].Id;
System\Windows\Automation\AutomationElement.cs (2)
506UiaCoreApi.UiaGetPropertyValue(_hnode, property.Id, out value); 583hpatternobj = UiaCoreApi.UiaGetPatternProvider(_hnode, pattern.Id);
System\Windows\Automation\ItemContainerPattern.cs (3)
98hNode = UiaCoreApi.ItemContainerPattern_FindItemByProperty(_hPattern, startAfter.RawNode, property.Id, value); 105hNode = UiaCoreApi.ItemContainerPattern_FindItemByProperty(_hPattern, new SafeNodeHandle(), property.Id, value); 155value = ((ControlType)value).Id;
System\Windows\Automation\PropertyCondition.cs (2)
158val = ((ControlType)val).Id; 215SetMarshalData(new UiaCoreApi.UiaPropertyCondition(_property.Id, _val, _flags));
System\Windows\Automation\Text\TextRange.cs (2)
200SafeTextRangeHandle hResultTextRange = UiaCoreApi.TextRange_FindAttribute(_hTextRange, attribute.Id, value, backward); 240object obj = UiaCoreApi.TextRange_GetAttributeValue(_hTextRange, attribute.Id);
UIAutomationClientSideProviders (6)
MS\Internal\AutomationProxies\EmptyElement.cs (1)
94if (patternId == GridItemPattern.Pattern.Id)
MS\Internal\AutomationProxies\EventManager.cs (1)
124object propertyValue = ((IRawElementProviderSimple)el).GetPropertyValue(property.Id);
MS\Internal\AutomationProxies\MSAAEventDispatcher.cs (1)
301object newValue = ((IRawElementProviderSimple)provider).GetPropertyValue(property.Id);
MS\Internal\AutomationProxies\MSAANativeProvider.cs (1)
907return ctype.Id;
MS\Internal\AutomationProxies\ProxySimple.cs (1)
190return _cControlType != null ? (object)_cControlType.Id : null;
MS\Internal\AutomationProxies\WindowsMenu.cs (1)
2917return ControlType.MenuItem.Id;
UIAutomationProvider (2)
System\Windows\Automation\Provider\AutomationInteropProvider.cs (2)
100UiaCoreProviderApi.UiaRaiseAutomationPropertyChangedEvent(element, e.Property.Id, e.OldValue, e.NewValue); 154UiaCoreProviderApi.UiaRaiseAutomationEvent(provider, eventId.Id);