1 write to _owningComboBox
System.Windows.Forms (1)
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxItemAccessibleObject.cs (1)
29_owningComboBox = owningComboBox.OrThrowIfNull();
29 references to _owningComboBox
System.Windows.Forms (29)
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxItemAccessibleObject.cs (29)
38var listHandle = _owningComboBox.GetListHandle(); 62_owningComboBox.ChildListAccessibleObject.SystemIAccessible.TryGetDefaultAction(GetChildId()); 70return _owningComboBox.ChildListAccessibleObject; 73if (_owningComboBox.ChildListAccessibleObject is not ComboBoxChildListUiaProvider comboBoxChildListUiaProvider) 104internal override IRawElementProviderFragmentRoot.Interface FragmentRoot => _owningComboBox.AccessibilityObject; 106private int GetCurrentIndex() => _owningComboBox.Items.InnerList.IndexOf(_owningItem); 115UIA_PROPERTY_ID.UIA_HasKeyboardFocusPropertyId => (VARIANT)(_owningComboBox.Focused && _owningComboBox.SelectedIndex == GetCurrentIndex()), 118UIA_PROPERTY_ID.UIA_IsEnabledPropertyId => (VARIANT)_owningComboBox.Enabled, 121UIA_PROPERTY_ID.UIA_SelectionItemSelectionContainerPropertyId => (VARIANT)ComHelpers.GetComPointer<IUnknown>(_owningComboBox.ChildListAccessibleObject), 127internal override BSTR GetHelpInternal() => _owningComboBox.ChildListAccessibleObject.SystemIAccessible.TryGetHelp(GetChildId()); 141public override string? Name => _owningComboBox is null ? base.Name : _owningComboBox.GetItemText(_owningItem.Item); 143internal override bool CanGetNameInternal => _owningComboBox is null; 146=> _owningComboBox.ChildListAccessibleObject.SystemIAccessible.TryGetRole(GetChildId()); 151(int)_owningComboBox.InternalHandle, 152_owningComboBox.GetListNativeWindowRuntimeIdPart(), 160AccessibleStates state = _owningComboBox.ChildListAccessibleObject.SystemIAccessible.TryGetState(GetChildId()); 162if (!_owningComboBox.DroppedDown || !_owningComboBox.ChildListAccessibleObject.Bounds.IntersectsWith(Bounds)) 173if (!_owningComboBox.IsHandleCreated || !_owningComboBox.Enabled) 178Rectangle listBounds = _owningComboBox.ChildListAccessibleObject.Bounds; 185PInvoke.SendMessage(_owningComboBox, PInvoke.CB_SETTOPINDEX, (WPARAM)GetCurrentIndex()); 197if (!_owningComboBox.IsHandleCreated) 202_owningComboBox.SelectedIndex = GetCurrentIndex(); 203PInvoke.InvalidateRect(_owningComboBox.GetListHandle(), lpRect: null, bErase: false); 208if (!_owningComboBox.IsHandleCreated) 223internal override IRawElementProviderSimple.Interface ItemSelectionContainer => _owningComboBox.ChildListAccessibleObject;