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