2 writes to SystemIAccessible
System.Windows.Forms (2)
System\Windows\Forms\Accessibility\AccessibleObject.cs (2)
135SystemIAccessible = accessible; 2740SystemIAccessible = new(accessible, takeOwnership: true, trackDisposal: false);
81 references to SystemIAccessible
System.Windows.Forms (81)
System\Windows\Forms\Accessibility\AccessibleObject.cs (44)
144public virtual Rectangle Bounds => SystemIAccessible.TryGetLocation(CHILDID_SELF); 164internal virtual BSTR GetDefaultActionInternal() => SystemIAccessible.TryGetDefaultAction(CHILDID_SELF); 184internal virtual BSTR GetDescriptionInternal() => SystemIAccessible.TryGetDescription(CHILDID_SELF); 206internal virtual BSTR GetHelpInternal() => SystemIAccessible.TryGetHelp(CHILDID_SELF); 226internal virtual BSTR GetKeyboardShortcutInternal(VARIANT childID) => SystemIAccessible.TryGetKeyboardShortcut(childID); 254internal virtual BSTR GetNameInternal() => SystemIAccessible.TryGetName(CHILDID_SELF); 269internal virtual void SetNameInternal(BSTR value) => SystemIAccessible.TrySetName(CHILDID_SELF, value); 298using var accessible = SystemIAccessible.TryGetIAccessible(out HRESULT result); 325public virtual AccessibleRole Role => SystemIAccessible.TryGetRole(CHILDID_SELF); 330public virtual AccessibleStates State => SystemIAccessible.TryGetState(CHILDID_SELF); 356internal virtual BSTR GetValueInternal() => SystemIAccessible is null ? new(string.Empty) : SystemIAccessible.TryGetValue(CHILDID_SELF); 371internal virtual void SetValueInternal(BSTR value) => SystemIAccessible.TrySetValue(CHILDID_SELF, value); 450using var accessible = SystemIAccessible.TryGetIAccessible(out HRESULT result); 471(int topic, BSTR file) = SystemIAccessible.TryGetHelpTopic(CHILDID_SELF); 489internal virtual (int topic, BSTR helpFile) GetHelpTopicInternal() => SystemIAccessible.TryGetHelpTopic(CHILDID_SELF); 518using var accessible = SystemIAccessible.TryGetIAccessible(out HRESULT result); 556using var accessible = SystemIAccessible.TryGetIAccessible(out HRESULT result); 1159*ppAccessible = SystemIAccessible is { } accessible 1595using var accessible = SystemIAccessible.TryGetIAccessible(out HRESULT result); 1669using var accessible = SystemIAccessible.TryGetIAccessible(out HRESULT result); 1721using var accessible = SystemIAccessible.TryGetIAccessible(out HRESULT result); 1773using var accessible = SystemIAccessible.TryGetIAccessible(out HRESULT result); 1809using var accessible = SystemIAccessible.TryGetIAccessible(out HRESULT result); 1824using var accessible = SystemIAccessible.TryGetIAccessible(out HRESULT result); 1875using var accessible = SystemIAccessible.TryGetIAccessible(out HRESULT result); 1919using ComScope<UIA.IAccessible> accessible = SystemIAccessible.TryGetIAccessible(out HRESULT result); 1969*pszDefaultAction = SystemIAccessible.TryGetDefaultAction(varChild); 2009*pszDescription = SystemIAccessible.TryGetDescription(varChild); 2100*pszHelp = SystemIAccessible.TryGetHelp(varChild); 2151(*pidTopic, *pszHelpFile) = SystemIAccessible.TryGetHelpTopic(varChild); 2185*pszKeyboardShortcut = SystemIAccessible.TryGetKeyboardShortcut(varChild); 2224BSTR systemName = SystemIAccessible.TryGetName(varChild); 2312int count = SystemIAccessible.TryGetChildCount(); 2315*pvarRole = count == 0 ? VARIANT.Empty : (VARIANT)(int)SystemIAccessible.TryGetRole(varChild); 2346using var accessible = SystemIAccessible.TryGetIAccessible(out HRESULT result); 2389*pvarState = SystemIAccessible?.TryGetState(varChild) is { } state ? (VARIANT)(int)state : VARIANT.Empty; 2429*pszValue = SystemIAccessible.TryGetValue(varChild); 2469SystemIAccessible.TrySetName(varChild, szName); 2509SystemIAccessible.TrySetValue(varChild, szValue); 2627using var accessible = SystemIAccessible.TryGetIAccessible(out HRESULT result); 2649using var accessible = SystemIAccessible.TryGetIAccessible(out HRESULT result); 2683if (obj is not null && obj._isSystemWrapper && obj.SystemIAccessible is { } accessible) 2895if (SystemIAccessible is { } systemAccessible
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxChildDropDownButtonUiaProvider.cs (6)
44public override unsafe Rectangle Bounds => SystemIAccessible.TryGetLocation(GetChildId()); 50internal override BSTR GetDefaultActionInternal() => SystemIAccessible.TryGetDefaultAction(GetChildId()); 88internal override BSTR GetHelpInternal() => SystemIAccessible.TryGetHelp(GetChildId()); 92internal override BSTR GetKeyboardShortcutInternal(VARIANT childID) => SystemIAccessible.TryGetKeyboardShortcut(childID); 100public override AccessibleRole Role => SystemIAccessible.TryGetRole(GetChildId()); 111public override AccessibleStates State => SystemIAccessible.TryGetState(GetChildId());
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxChildListUiaProvider.cs (1)
43using var accessible = SystemIAccessible.TryGetIAccessible(out HRESULT result);
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxItemAccessibleObject.cs (4)
62_owningComboBox.ChildListAccessibleObject.SystemIAccessible.TryGetDefaultAction(GetChildId()); 127internal override BSTR GetHelpInternal() => _owningComboBox.ChildListAccessibleObject.SystemIAccessible.TryGetHelp(GetChildId()); 146=> _owningComboBox.ChildListAccessibleObject.SystemIAccessible.TryGetRole(GetChildId()); 160AccessibleStates state = _owningComboBox.ChildListAccessibleObject.SystemIAccessible.TryGetState(GetChildId());
System\Windows\Forms\Controls\ListBoxes\ListBox.ItemAccessibleObject.cs (5)
86_owningAccessibleObject.SystemIAccessible.TryGetDefaultAction(GetChildId()); 90internal override BSTR GetHelpInternal() => _owningAccessibleObject.SystemIAccessible.TryGetHelp(GetChildId()); 96public override AccessibleRole Role => _owningAccessibleObject.SystemIAccessible.TryGetRole(GetChildId()); 109return state |= _owningAccessibleObject.SystemIAccessible.TryGetState(GetChildId()); 269=> _owningAccessibleObject.SystemIAccessible.TrySelect(flags, GetChildId());
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewItemBaseAccessibleObject.cs (2)
91return state |= _owningListView.AccessibilityObject.SystemIAccessible.TryGetState(GetChildId()); 291_owningListView.AccessibilityObject.SystemIAccessible.TrySelect(flags, GetChildId());
System\Windows\Forms\Controls\TabControl\TabControl.TabControlAccessibleObject.cs (2)
29return SystemIAccessible.TryGetLocation(CHILDID_SELF); 38=> SystemIAccessible.TryGetState(CHILDID_SELF);
System\Windows\Forms\Controls\TabControl\TabPage.TabAccessibleObject.cs (1)
79=> OwningTabControl?.AccessibilityObject.SystemIAccessible;
System\Windows\Forms\Controls\TabControl\TabPage.TabPageAccessibleObject.cs (1)
19public override AccessibleStates State => SystemIAccessible.TryGetState(GetChildId());
System\Windows\Forms\Controls\TrackBar\TrackBar.TrackBarAccessibleObject.cs (2)
33return SystemIAccessible.TryGetLocation(CHILDID_SELF); 51=> SystemIAccessible.TryGetState(CHILDID_SELF);
System\Windows\Forms\Controls\TrackBar\TrackBar.TrackBarChildAccessibleObject.cs (4)
31return ParentInternal?.SystemIAccessible.TryGetLocation(GetChildId()) ?? Rectangle.Empty; 40=> ParentInternal is { } parent ? parent.SystemIAccessible.TryGetHelp(GetChildId()) : default; 43=> ParentInternal?.SystemIAccessible.TryGetRole(GetChildId()) ?? AccessibleRole.None; 46=> ParentInternal?.SystemIAccessible.TryGetState(GetChildId()) ?? AccessibleStates.None;
System\Windows\Forms\Controls\TrackBar\TrackBar.TrackBarFirstButtonAccessibleObject.cs (1)
70ParentInternal?.SystemIAccessible.TryDoDefaultAction(GetChildId());
System\Windows\Forms\Controls\TrackBar\TrackBar.TrackBarLastButtonAccessibleObject.cs (1)
79ParentInternal?.SystemIAccessible.TryDoDefaultAction(GetChildId());
System\Windows\Forms\Scrolling\ScrollBar.ScrollBarChildAccessibleObject.cs (7)
33return ParentInternal.SystemIAccessible.TryGetLocation(GetChildId()); 42ParentInternal.SystemIAccessible.TryGetDefaultAction(GetChildId()); 47ParentInternal.SystemIAccessible.TryGetDescription(GetChildId()); 51internal override BSTR GetNameInternal() => ParentInternal.SystemIAccessible.TryGetName(GetChildId()); 54=> ParentInternal.SystemIAccessible.TryGetRole(GetChildId()); 57=> ParentInternal.SystemIAccessible.TryGetState(GetChildId()); 95ParentInternal.SystemIAccessible.TryDoDefaultAction(GetChildId());