1 write to _owningListBox
System.Windows.Forms (1)
System\Windows\Forms\Controls\ListBoxes\ListBox.ItemAccessibleObject.cs (1)
23_owningListBox = owningListBox.OrThrowIfNull();
32 references to _owningListBox
System.Windows.Forms (32)
System\Windows\Forms\Controls\ListBoxes\ListBox.ItemAccessibleObject.cs (32)
28protected int CurrentIndex => _owningListBox.Items.InnerArray.IndexOf(_itemEntry); 57if (!_owningListBox.IsHandleCreated) 62Rectangle bounds = _owningListBox.GetItemRectangle(CurrentIndex); 69bounds = _owningListBox.RectangleToScreen(bounds); 70Rectangle visibleArea = _owningListBox.RectangleToScreen(_owningListBox.ClientRectangle); 92public override string? Name => _owningListBox.GetItemText(_itemEntry.Item); 104if (_owningListBox.SelectedIndex == CurrentIndex) 115if (_owningListBox.IsHandleCreated) 123if (_owningListBox.IsHandleCreated) 132int lastItemIndex = _owningListBox.Items.Count - 1; 138return _owningListBox.AccessibilityObject; 168UIA_PROPERTY_ID.UIA_HasKeyboardFocusPropertyId => (VARIANT)(_owningListBox.Focused && _owningListBox.FocusedIndex == CurrentIndex), 169UIA_PROPERTY_ID.UIA_IsEnabledPropertyId => (VARIANT)_owningListBox.Enabled, 185if (!_owningListBox.IsHandleCreated 186|| _owningListBox.SelectionMode == SelectionMode.None 187|| _owningListBox.SelectionMode == SelectionMode.One 193_owningListBox.SetSelected(CurrentIndex, value: false); 198if (!_owningListBox.IsHandleCreated) 205if (_owningListBox.SelectedIndex == -1) // no item selected 207PInvokeCore.SendMessage(_owningListBox, PInvoke.LB_SETCARETINDEX, (WPARAM)currentIndex); 211int firstVisibleIndex = (int)PInvokeCore.SendMessage(_owningListBox, PInvoke.LB_GETTOPINDEX); 214PInvokeCore.SendMessage(_owningListBox, PInvoke.LB_SETTOPINDEX, (WPARAM)currentIndex); 219int listBoxHeight = _owningListBox.ClientRectangle.Height; 220int itemsCount = _owningListBox.Items.Count; 224int itemHeight = (int)PInvokeCore.SendMessage(_owningListBox, PInvoke.LB_GETITEMHEIGHT, (WPARAM)i); 236PInvokeCore.SendMessage(_owningListBox, PInvoke.LB_SETTOPINDEX, (WPARAM)(currentIndex - visibleItemsCount + 1)); 245if (!_owningListBox.IsHandleCreated) 250_owningListBox.SelectedIndex = CurrentIndex; 252PInvoke.InvalidateRect(_owningListBox, lpRect: null, bErase: false); 259if (!_owningListBox.IsHandleCreated)