3 writes to _item
UIAutomationClientSideProviders (3)
MS\Internal\AutomationProxies\ProxySimple.cs (1)
69_item = item;
MS\Internal\AutomationProxies\WindowsMenu.cs (1)
2863_item = item;
MS\Internal\AutomationProxies\WindowsScrollBarBits.cs (1)
43_item = (int) item;
231 references to _item
UIAutomationClientSideProviders (231)
MS\Internal\AutomationProxies\NonClientArea.cs (2)
336return ReturnNextNonClientChild (true, (NonClientItem) child._item + 1); 344return ReturnNextNonClientChild (false, (NonClientItem) child._item - 1);
MS\Internal\AutomationProxies\ProxySimple.cs (3)
138return Misc.AppendToRuntimeId(GetParent().GetRuntimeId(), _item); 165id[2] = _item; 202return _item >= 0 && _fIsContent;
MS\Internal\AutomationProxies\WindowsAltTab.cs (5)
110return CreateAltTabItem(child._item + 1); 116return CreateAltTabItem(child._item - 1); 366if (WindowsAltTab.GetAltTabInfo(_hwnd, _item, ref altTabInfo, itemText)) 389int row = _item / columns; 390int column = _item % columns;
MS\Internal\AutomationProxies\WindowsComboBox.cs (2)
211if (child._item == (int) ComboChildren.List && !IsSimpleCombo ()) 224if (child._item == (int) ComboChildren.Button)
MS\Internal\AutomationProxies\WindowsEditBox.cs (3)
224return new WindowsSpinner(hwndUpDown, _hwnd, _parent, _item); 235return new WindowsSpinner(hwndUpDown, _hwnd, _parent, _item); 246return new WindowsSpinner(hwndUpDown, _hwnd, _parent, _item);
MS\Internal\AutomationProxies\WindowsHyperlink.cs (6)
151return GetLinkItem (child._item + 1) ? CreateHyperlinkItem (_linkItem, child._item + 1) : null; 159return GetLinkItem (child._item - 1) ? CreateHyperlinkItem (_linkItem, child._item - 1) : null; 395linkItem.iLink = _item; 502if (bGetItemResult == true && HitTestInfo.item.iLink == _item)
MS\Internal\AutomationProxies\WindowsListBox.cs (22)
211int item = child._item; 243int item = child._item; 729return cb.GetListItemText(_item); 733int iTextLen = Misc.ProxySendMessageInt(_hwnd, NativeMethods.LB_GETTEXTLEN, new IntPtr(_item), IntPtr.Zero); 744return XSendMessage.GetItemText(_hwnd, NativeMethods.WM_USER + NativeMethods.LB_GETTEXT, _item, iTextLen); 748string text = Misc.GetUnsafeText(_hwnd, NativeMethods.LB_GETTEXT, new IntPtr(_item), iTextLen); 782bool itemSelected = IsSelected (_hwnd, _item); 787if (_listBox.HasOtherSelections(_item)) 838if (ListboxItem.IsSelected (_hwnd, _item) && !_listBox.IsParentedByCombo()) 889if (!IsSelected(_hwnd, _item)) 904if (!UnSelect(_hwnd, _item)) 915return ListboxItem.IsSelected (_hwnd, _item); 946Misc.ProxySendMessage(_hwnd, NativeMethods.LB_SETTOPINDEX, new IntPtr(_item), IntPtr.Zero); 1020return Misc.ProxySendMessageInt(_hwnd, NativeMethods.LB_SETCARETINDEX, new IntPtr(_item), new IntPtr(0)) != NativeMethods.LB_ERR; 1024return Select (_hwnd, _item, false); 1045return Misc.ProxySendMessageInt(_hwnd, NativeMethods.LB_GETCARETINDEX, IntPtr.Zero, IntPtr.Zero) == _item; 1049return Misc.ProxySendMessageInt(_hwnd, NativeMethods.LB_GETSEL, new IntPtr(_item), IntPtr.Zero) >= 0; 1066Misc.ProxySendMessage(_hwnd, NativeMethods.LB_GETITEMRECT, new IntPtr(_item), ref itemRect); 1087IAccessible accChild = (IAccessible)accChildren[_item]; 1135Misc.ProxySendMessageInt(_hwnd, NativeMethods.LB_SETSEL, new IntPtr(1), new IntPtr(_item)); 1140Misc.ProxySendMessageInt(_hwnd, NativeMethods.LB_SETCURSEL, new IntPtr(_item), IntPtr.Zero); 1170Misc.ProxySendMessageInt(_hwnd, NativeMethods.LB_SETCURSEL, new IntPtr(_item), IntPtr.Zero);
MS\Internal\AutomationProxies\WindowsListView.cs (3)
204int item = child._item; 315int item = child._item; 805columns [headerItem._item] = headerItem;
MS\Internal\AutomationProxies\WindowsListViewGroup.cs (2)
134int current = child._item; 187int current = child._item;
MS\Internal\AutomationProxies\WindowsListViewItem.cs (43)
85if (iid == TogglePattern.Pattern && IsItemWithCheckbox(_hwnd, _item)) 133ii.iItem = _item; 151if (WindowsListView.GetItemRect(_hwnd, _item, NativeMethods.LVIR_BOUNDS, out itemRectangle)) 177Accessible accItem = Accessible.Wrap(acc, _item + 1); 194string text = GetText(_hwnd, _item, 0); 201Accessible accItem = Accessible.Wrap(acc, _item + 1); 217return WindowsListView.SetItemFocused (_hwnd, _item); 237&& IsItemWithCheckbox(_hwnd, _item)) 259int item = child._item; 279int item = child._item; 281if (IsItemWithCheckbox(_hwnd, _item) && item == 0) 300if (IsItemWithCheckbox(_hwnd, _item)) 329if (IsItemWithCheckbox(_hwnd, _item)) 341if (IsItemWithCheckbox (_hwnd, _item)) 343NativeMethods.Win32Rect checkboxRectangle = ListViewItemCheckbox.ListViewCheckBoxRect (_hwnd, _item); 347return new ListViewItemCheckbox (_hwnd, this, _item, _checkbox); 354return ListViewSubItem.ElementProviderFromPoint (_hwnd, this, _item, x, y); 394if (!WindowsListView.MultiSelected (_hwnd) && WindowsListView.IsItemSelected (_hwnd, _item)) 403if (!WindowsListView.SelectItem(_hwnd, _item)) 419if (WindowsListView.IsItemSelected (_hwnd, _item)) 441if (!WindowsListView.SelectItem(_hwnd, _item)) 457if (!WindowsListView.IsItemSelected (_hwnd, _item)) 477if (!WindowsListView.UnSelectItem(_hwnd, _item)) 488return WindowsListView.IsItemSelected (_hwnd, _item); 528WindowsListView.EnsureVisible (_hwnd, _item, true); 554SetValue(val, _hwnd, _item); 562return ListViewItem.GetText (_hwnd, _item, 0); 594int column = _item / rowCount; 596return (_item - (column * rowCount)); 601return _item / columnCount; 620return _item / rowCount; 624int row = _item / columnCount; 626return (_item - (row * columnCount)); 673WindowsListView.EnsureVisible(_hwnd, _item, false); 846return WindowsListView.IsItemFocused (_hwnd, _item); 891return new ListViewSubItem (_hwnd, this, index, _item); 896return new ListViewItemCheckbox (_hwnd, this, _item, _checkbox); 923if (!WindowsListView.GetItemRect(_hwnd, _item, NativeMethods.LVIR_LABEL, out itemRectangle)) 944if (!WindowsListView.GetItemRect(_hwnd, _item, NativeMethods.LVIR_LABEL, out itemRectangle)) 986int groupID = GetGroupID (_hwnd, _item); 995int position = groupInfo.IndexOf (_item); //Array.IndexOf(groupInfo._items, _item); 1019int groupID = GetGroupID (_hwnd, _item); 1028int position = groupInfo.IndexOf (_item);
MS\Internal\AutomationProxies\WindowsListViewItemStartMenu.cs (1)
94string key = AccessibleObject.get_accKeyboardShortcut(_item + 1);
MS\Internal\AutomationProxies\WindowsListViewSubItem.cs (9)
57if (iid == ValuePattern.Pattern && _item == 0 && WindowsListView.ListViewEditable (_hwnd)) 79int lvir = (_item == 0) ? NativeMethods.LVIR_SELECTBOUNDS : NativeMethods.LVIR_BOUNDS; 81if (!WindowsListView.GetSubItemRect (_hwnd, _itemParent, _item, lvir, out itemRectangle)) 90!WindowsListView.IsIconView(_hwnd) && _item == 0 && 1 < ListViewItem.GetSubItemCount(_hwnd)) 200string name = ListViewItem.GetText(_hwnd, _itemParent, _item); 232return ListViewItem.GetText (_hwnd, _itemParent, _item); 286return _item; 333return new IRawElementProviderSimple [] { new WindowsSysHeader.HeaderItem (hwndHeader, header, _item) }; 377return column == _item;
MS\Internal\AutomationProxies\WindowsMenu.cs (28)
89_expandedMenus[hwnd] = new MenuParentInfo(_parent._hwnd, _parent._item, ((MenuItem)_parent)._menuType); 103_expandedMenus[hwnd] = new MenuParentInfo(_parent._hwnd, _parent._item, ((MenuItem)_parent)._menuType); 399int item = child._item; 409int item = child._item; 1184_sAutomationId = "Separator " + (_item + 1).ToString(CultureInfo.InvariantCulture); // This string is a non-localizable string 1282if (Misc.GetMenuItemRect(_hwnd, _hmenu, _item, out rc)) 1515while (!Misc.IsBitSet(UnsafeNativeMethods.GetMenuState(_hmenu, _item, NativeMethods.MF_BYPOSITION), NativeMethods.MF_HILITE) && 1605IntPtr submenu = _menuType == MenuType.System ? _hmenu : UnsafeNativeMethods.GetSubMenu (_hmenu, _item); 1624IntPtr submenu = _menuType == MenuType.System ? _hmenu : UnsafeNativeMethods.GetSubMenu (_hmenu, _item); 1873return Misc.IsBitSet(UnsafeNativeMethods.GetMenuState(_hmenu, _item, NativeMethods.MF_BYPOSITION), NativeMethods.MF_HILITE); 1888return Misc.IsBitSet(UnsafeNativeMethods.GetMenuState(_hmenu, _item, NativeMethods.MF_BYPOSITION), NativeMethods.MF_CHECKED); 1897if (!Misc.GetMenuItemInfo(_hmenu, _item, true, ref menuItemInfo)) 1956if (Misc.GetMenuItemInfo(_hmenu, _item, true, ref menuItemInfo)) 1990IntPtr submenu = UnsafeNativeMethods.GetSubMenu(_hmenu, _item); 2142IntPtr hSubmenu = UnsafeNativeMethods.GetSubMenu(_hmenu, _item); 2339while (!Misc.IsBitSet(UnsafeNativeMethods.GetMenuState(_hmenu, _item, NativeMethods.MF_BYPOSITION), NativeMethods.MF_HILITE) && 2379if( i == _item ) 2403if (_item == 0 && _menuType == WindowsMenu.MenuType.Toplevel && 2510int result = UnsafeNativeMethods.GetMenuItemID(_hmenu, _item); 2521itemId = "Item " + (_item + 1).ToString(CultureInfo.CurrentCulture); 2542int length = UnsafeNativeMethods.GetMenuString(_hmenu, _item, IntPtr.Zero, 0, NativeMethods.MF_BYPOSITION); 2551if (UnsafeNativeMethods.GetMenuString(_hmenu, _item, strbldr, length + 1, NativeMethods.MF_BYPOSITION) == length) 2564if (Misc.GetMenuItemInfo(_hmenu, _item, true, ref menuItemInfo)) 2655int state = UnsafeNativeMethods.GetMenuState(_hmenu, _item, NativeMethods.MF_BYPOSITION); 2667if (_item > 0) 2669return new MenuItem(_hwnd, _parent, _item - 1, _hmenu, _menuType); 2680int nextItem = _item + 1; 2718for (int i = 0; i < _item; i++)
MS\Internal\AutomationProxies\WindowsRebar.cs (8)
83int item = child._item; 100int item = child._item; 169return new RebarBandChildOverrideProxy (hwnd, band, band._item); 281return GetBoundingRectangle (_hwnd, _item); 291return Misc.GetItemToolTipText(_hwnd, hwndToolTip, _item); 331return new RebarBandChildOverrideProxy (HwndBand, this, _item); 381Misc.PostMessage(_hwnd, NativeMethods.RB_PUSHCHEVRON, (IntPtr)_item, IntPtr.Zero); 435if (XSendMessage.XSend(_hwnd, NativeMethods.RB_GETBANDINFOA, new IntPtr(_item), new IntPtr(&rebarBandInfo), Marshal.SizeOf(rebarBandInfo.GetType()), XSendMessage.ErrorValue.Zero))
MS\Internal\AutomationProxies\WindowsScrollBar.cs (4)
250return new int[] { AutomationInteropProvider.AppendRuntimeId, _item }; 264if (_item == -1) 284ScrollBarItem item = (ScrollBarItem) child._item; 304ScrollBarItem item = (ScrollBarItem) child._item;
MS\Internal\AutomationProxies\WindowsScrollBarBits.cs (6)
51switch ((WindowsScrollBar.ScrollBarItem)_item) 102if (iid == InvokePattern.Pattern && (WindowsScrollBar.ScrollBarItem) _item != WindowsScrollBar.ScrollBarItem.Thumb) 130return GetBoundingRectangle (_hwnd, _parent, (WindowsScrollBar.ScrollBarItem) _item, _sbFlag); 139return SR.GetResourceString(_asNames[_item]); 156if ((WindowsScrollBar.ScrollBarItem) _item == WindowsScrollBar.ScrollBarItem.Thumb) 163switch ((WindowsScrollBar.ScrollBarItem) _item)
MS\Internal\AutomationProxies\WindowsSlider.cs (6)
109SItem item = (SItem)(child._item + 1); 119SItem item = (SItem)(child._item - 1); 395return _item != (int) WindowsSlider.SItem.Thumb && iid == InvokePattern.Pattern ? this : null; 403return GetBoundingRectangle (_hwnd, (WindowsSlider.SItem) _item, _fHorizontal); 422return SR.GetResourceString(_asNames[_item]); 441IntPtr wParam = (IntPtr) (_item == (int) WindowsSlider.SItem.LargeDecrement ? NativeMethods.VK_PRIOR : NativeMethods.VK_NEXT);
MS\Internal\AutomationProxies\WindowsStatusBar.cs (7)
158int item = child._item; 182int item = child._item; 462return GetBoundingRectangle (_hwnd, _item); 491return _item; 599int retValue = Misc.ProxySendMessageInt(_hwnd, NativeMethods.SB_GETTEXTLENGTHW, new IntPtr(_item), IntPtr.Zero); 604return XSendMessage.GetItemText(_hwnd, NativeMethods.SB_GETTEXTW, _item, len); 704return _item;
MS\Internal\AutomationProxies\WindowsSysHeader.cs (18)
125int item = child._item; 136int item = child._item; 264if (firstVisibleHeaderItem != null && firstVisibleHeaderItem._item > headerItem._item) 268columns = headerItem._item - firstVisibleHeaderItem._item; 270else if (lastVisibleHeaderItem != null && headerItem._item > lastVisibleHeaderItem._item) 274columns = headerItem._item - lastVisibleHeaderItem._item; 536return item == _item; 555int index = OrderToIndex (_hwnd, _item); 572int index = OrderToIndex (_hwnd, _item); 608if (_item > 0) 620if (_item > 0) 689if (XSendMessage.GetItem(_hwnd, _item, ref item)) 704if (item == _item) 730Rect rect = XSendMessage.GetItemRect(_hwnd, NativeMethods.HDM_GETITEMDROPDOWNRECT, _item);
MS\Internal\AutomationProxies\WindowsTab.cs (19)
184int item = child._item; 212int item = child._item; 916_fIsContent = !string.IsNullOrEmpty(GetName(_hwnd, _item, true)); 959return Misc.AccessKey(WindowsTabItem.GetItemText(_hwnd, _item)); 963return !string.IsNullOrEmpty(GetName(_hwnd, _item, true)); 975return Misc.GetItemToolTipText(_hwnd, hwndToolTip, _item); 987string name = GetAccessibleName(_item + 1); 994return GetName(_hwnd, _item, _windowsForms == WindowsFormsHelper.FormControlState.True); 1009if (focused == null || _item != focused._item) 1011Misc.ProxySendMessage(_hwnd, NativeMethods.TCM_SETCURFOCUS, new IntPtr(_item), IntPtr.Zero); 1045return new WindowsTabChildOverrideProxy(hwndChild, this, _item); 1174return (_item == selectedItem); 1183if (!XSendMessage.GetItem(_hwnd, _item, ref TCItem)) 1223parent.ScrollToItem(_item); 1263return Misc.ProxySendMessageInt(_hwnd, NativeMethods.TCM_GETCURFOCUS, IntPtr.Zero, IntPtr.Zero) == _item; 1280if (!XSendMessage.XSend(_hwnd, NativeMethods.TCM_GETITEMRECT, new IntPtr(_item), new IntPtr(&rectW32), Marshal.SizeOf(rectW32.GetType()), XSendMessage.ErrorValue.Zero)) 1314Misc.ProxySendMessage(_hwnd, NativeMethods.TCM_SETCURFOCUS, new IntPtr(_item), IntPtr.Zero); 1333string sName = WindowsTabItem.GetName(_hwnd, _item, true);
MS\Internal\AutomationProxies\WindowsTitleBar.cs (8)
70return new int [] { 4, unchecked((int)(long)_hwnd), _item }; 91return ReturnNextTitleBarChild (true, child._item + 1); 99return ReturnNextTitleBarChild (false, child._item - 1); 285switch (_item) 319switch (_item) 364return rects[_item]; 373switch (_item) 413switch (_item)
MS\Internal\AutomationProxies\WindowsToolbar.cs (12)
131if (child._item >= count) 137for (int item = child._item + 1; item >= 0 && item < count; item++) 158if (child._item >= count) 164for (int item = child._item - 1; item >= 0 && item < count; item--) 369if (XSendMessage.GetItem(_hwnd, _item, ref tbb)) 458return GetBoundingRectangle(_hwnd, _item); 511if (focused == null || _item != focused._item) 521Misc.ProxySendMessage(_hwnd, NativeMethods.TB_SETHOTITEM, new IntPtr(_item), IntPtr.Zero); 583return Misc.ProxySendMessageInt(_hwnd, NativeMethods.TB_GETHOTITEM, IntPtr.Zero, IntPtr.Zero) == _item; 614string name = GetAccessibleName(_item + 1); 631if (XSendMessage.GetItem(_hwnd, _item, ref tbb))
MS\Internal\AutomationProxies\WindowsTreeView.cs (8)
157TVItem item = (TVItem)child._item; 185TVItem item = (TVItem)child._item; 402return new TreeViewItem(hwnd, elParent, hItem, elParent._item + 1); 871return Misc.GetItemToolTipText(_hwnd, hwndToolTip, _item); 1325return hNext != IntPtr.Zero ? new TreeViewItem(_hwnd, this, hNext, _item + 1) : null; 1335return hPrev != IntPtr.Zero ? new TreeViewItem(_hwnd, this, hPrev, _item + 1) : null; 1343return hChild != IntPtr.Zero ? new TreeViewItem(_hwnd, this, hChild, _item + 1) : null; 1364return new TreeViewItem(_hwnd, this, hChild, _item + 1);
MS\Internal\AutomationProxies\WindowsUpDown.cs (5)
154if (child._item == (int)SpinItem.DownArrow) 167if (child._item == (int)SpinItem.UpArrow) 472return GetBoundingRectangle(_hwnd, (WindowsUpDown.SpinItem)_item); 496int item = _item; 528int item = _item;
MS\Internal\AutomationProxies\WinFormsSpinner.cs (1)
316return new WinformsSpinnerEdit(_hwnd, _elEdit._hwnd, _elUpDown._hwnd, _parent, _item);