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