3 writes to _item
UIAutomationClientSideProviders (3)
MS\Internal\AutomationProxies\ProxySimple.cs (1)
61_item = item;
MS\Internal\AutomationProxies\WindowsMenu.cs (1)
2856_item = item;
MS\Internal\AutomationProxies\WindowsScrollBarBits.cs (1)
40_item = (int) item;
231 references to _item
UIAutomationClientSideProviders (231)
MS\Internal\AutomationProxies\NonClientArea.cs (2)
326return ReturnNextNonClientChild (true, (NonClientItem) child._item + 1); 334return ReturnNextNonClientChild (false, (NonClientItem) child._item - 1);
MS\Internal\AutomationProxies\ProxySimple.cs (3)
130return Misc.AppendToRuntimeId(GetParent().GetRuntimeId(), _item); 157id[2] = _item; 194return _item >= 0 && _fIsContent;
MS\Internal\AutomationProxies\WindowsAltTab.cs (5)
99return CreateAltTabItem(child._item + 1); 105return CreateAltTabItem(child._item - 1); 355if (WindowsAltTab.GetAltTabInfo(_hwnd, _item, ref altTabInfo, itemText)) 378int row = _item / columns; 379int column = _item % columns;
MS\Internal\AutomationProxies\WindowsComboBox.cs (2)
207if (child._item == (int) ComboChildren.List && !IsSimpleCombo ()) 220if (child._item == (int) ComboChildren.Button)
MS\Internal\AutomationProxies\WindowsEditBox.cs (3)
220return new WindowsSpinner(hwndUpDown, _hwnd, _parent, _item); 231return new WindowsSpinner(hwndUpDown, _hwnd, _parent, _item); 242return new WindowsSpinner(hwndUpDown, _hwnd, _parent, _item);
MS\Internal\AutomationProxies\WindowsHyperlink.cs (6)
148return GetLinkItem (child._item + 1) ? CreateHyperlinkItem (_linkItem, child._item + 1) : null; 156return GetLinkItem (child._item - 1) ? CreateHyperlinkItem (_linkItem, child._item - 1) : null; 392iLink = _item, 500if (bGetItemResult == true && HitTestInfo.item.iLink == _item)
MS\Internal\AutomationProxies\WindowsListBox.cs (22)
204int item = child._item; 236int item = child._item; 716return cb.GetListItemText(_item); 720int iTextLen = Misc.ProxySendMessageInt(_hwnd, NativeMethods.LB_GETTEXTLEN, new IntPtr(_item), IntPtr.Zero); 731return XSendMessage.GetItemText(_hwnd, NativeMethods.WM_USER + NativeMethods.LB_GETTEXT, _item, iTextLen); 735string text = Misc.GetUnsafeText(_hwnd, NativeMethods.LB_GETTEXT, new IntPtr(_item), iTextLen); 769bool itemSelected = IsSelected (_hwnd, _item); 774if (_listBox.HasOtherSelections(_item)) 825if (ListboxItem.IsSelected (_hwnd, _item) && !_listBox.IsParentedByCombo()) 876if (!IsSelected(_hwnd, _item)) 891if (!UnSelect(_hwnd, _item)) 902return ListboxItem.IsSelected (_hwnd, _item); 933Misc.ProxySendMessage(_hwnd, NativeMethods.LB_SETTOPINDEX, new IntPtr(_item), IntPtr.Zero); 1007return Misc.ProxySendMessageInt(_hwnd, NativeMethods.LB_SETCARETINDEX, new IntPtr(_item), new IntPtr(0)) != NativeMethods.LB_ERR; 1011return Select (_hwnd, _item, false); 1032return Misc.ProxySendMessageInt(_hwnd, NativeMethods.LB_GETCARETINDEX, IntPtr.Zero, IntPtr.Zero) == _item; 1036return Misc.ProxySendMessageInt(_hwnd, NativeMethods.LB_GETSEL, new IntPtr(_item), IntPtr.Zero) >= 0; 1053Misc.ProxySendMessage(_hwnd, NativeMethods.LB_GETITEMRECT, new IntPtr(_item), ref itemRect); 1074IAccessible accChild = (IAccessible)accChildren[_item]; 1122Misc.ProxySendMessageInt(_hwnd, NativeMethods.LB_SETSEL, new IntPtr(1), new IntPtr(_item)); 1127Misc.ProxySendMessageInt(_hwnd, NativeMethods.LB_SETCURSEL, new IntPtr(_item), IntPtr.Zero); 1157Misc.ProxySendMessageInt(_hwnd, NativeMethods.LB_SETCURSEL, new IntPtr(_item), IntPtr.Zero);
MS\Internal\AutomationProxies\WindowsListView.cs (3)
198int item = child._item; 309int item = child._item; 799columns [headerItem._item] = headerItem;
MS\Internal\AutomationProxies\WindowsListViewGroup.cs (2)
132int current = child._item; 185int current = child._item;
MS\Internal\AutomationProxies\WindowsListViewItem.cs (43)
80if (iid == TogglePattern.Pattern && IsItemWithCheckbox(_hwnd, _item)) 129iItem = _item 148if (WindowsListView.GetItemRect(_hwnd, _item, NativeMethods.LVIR_BOUNDS, out itemRectangle)) 174Accessible accItem = Accessible.Wrap(acc, _item + 1); 191string text = GetText(_hwnd, _item, 0); 198Accessible accItem = Accessible.Wrap(acc, _item + 1); 214return WindowsListView.SetItemFocused (_hwnd, _item); 234&& IsItemWithCheckbox(_hwnd, _item)) 256int item = child._item; 276int item = child._item; 278if (IsItemWithCheckbox(_hwnd, _item) && item == 0) 297if (IsItemWithCheckbox(_hwnd, _item)) 326if (IsItemWithCheckbox(_hwnd, _item)) 338if (IsItemWithCheckbox (_hwnd, _item)) 340NativeMethods.Win32Rect checkboxRectangle = ListViewItemCheckbox.ListViewCheckBoxRect (_hwnd, _item); 344return new ListViewItemCheckbox (_hwnd, this, _item, _checkbox); 351return ListViewSubItem.ElementProviderFromPoint (_hwnd, this, _item, x, y); 391if (!WindowsListView.MultiSelected (_hwnd) && WindowsListView.IsItemSelected (_hwnd, _item)) 400if (!WindowsListView.SelectItem(_hwnd, _item)) 416if (WindowsListView.IsItemSelected (_hwnd, _item)) 438if (!WindowsListView.SelectItem(_hwnd, _item)) 454if (!WindowsListView.IsItemSelected (_hwnd, _item)) 474if (!WindowsListView.UnSelectItem(_hwnd, _item)) 485return WindowsListView.IsItemSelected (_hwnd, _item); 525WindowsListView.EnsureVisible (_hwnd, _item, true); 551SetValue(val, _hwnd, _item); 559return ListViewItem.GetText (_hwnd, _item, 0); 591int column = _item / rowCount; 593return (_item - (column * rowCount)); 598return _item / columnCount; 617return _item / rowCount; 621int row = _item / columnCount; 623return (_item - (row * columnCount)); 670WindowsListView.EnsureVisible(_hwnd, _item, false); 842return WindowsListView.IsItemFocused (_hwnd, _item); 887return new ListViewSubItem (_hwnd, this, index, _item); 892return new ListViewItemCheckbox (_hwnd, this, _item, _checkbox); 919if (!WindowsListView.GetItemRect(_hwnd, _item, NativeMethods.LVIR_LABEL, out itemRectangle)) 940if (!WindowsListView.GetItemRect(_hwnd, _item, NativeMethods.LVIR_LABEL, out itemRectangle)) 982int groupID = GetGroupID (_hwnd, _item); 991int position = groupInfo.IndexOf (_item); //Array.IndexOf(groupInfo._items, _item); 1015int groupID = GetGroupID (_hwnd, _item); 1024int position = groupInfo.IndexOf (_item);
MS\Internal\AutomationProxies\WindowsListViewItemStartMenu.cs (1)
90string key = AccessibleObject.get_accKeyboardShortcut(_item + 1);
MS\Internal\AutomationProxies\WindowsListViewSubItem.cs (9)
56if (iid == ValuePattern.Pattern && _item == 0 && WindowsListView.ListViewEditable (_hwnd)) 78int lvir = (_item == 0) ? NativeMethods.LVIR_SELECTBOUNDS : NativeMethods.LVIR_BOUNDS; 80if (!WindowsListView.GetSubItemRect (_hwnd, _itemParent, _item, lvir, out itemRectangle)) 89!WindowsListView.IsIconView(_hwnd) && _item == 0 && 1 < ListViewItem.GetSubItemCount(_hwnd)) 199string name = ListViewItem.GetText(_hwnd, _itemParent, _item); 231return ListViewItem.GetText (_hwnd, _itemParent, _item); 285return _item; 332return new IRawElementProviderSimple [] { new WindowsSysHeader.HeaderItem (hwndHeader, header, _item) }; 376return column == _item;
MS\Internal\AutomationProxies\WindowsMenu.cs (28)
84_expandedMenus[hwnd] = new MenuParentInfo(_parent._hwnd, _parent._item, ((MenuItem)_parent)._menuType); 98_expandedMenus[hwnd] = new MenuParentInfo(_parent._hwnd, _parent._item, ((MenuItem)_parent)._menuType); 394int item = child._item; 404int item = child._item; 1179_sAutomationId = "Separator " + (_item + 1).ToString(CultureInfo.InvariantCulture); // This string is a non-localizable string 1275if (Misc.GetMenuItemRect(_hwnd, _hmenu, _item, out rc)) 1508while (!Misc.IsBitSet(UnsafeNativeMethods.GetMenuState(_hmenu, _item, NativeMethods.MF_BYPOSITION), NativeMethods.MF_HILITE) && 1598IntPtr submenu = _menuType == MenuType.System ? _hmenu : UnsafeNativeMethods.GetSubMenu (_hmenu, _item); 1617IntPtr submenu = _menuType == MenuType.System ? _hmenu : UnsafeNativeMethods.GetSubMenu (_hmenu, _item); 1866return Misc.IsBitSet(UnsafeNativeMethods.GetMenuState(_hmenu, _item, NativeMethods.MF_BYPOSITION), NativeMethods.MF_HILITE); 1881return Misc.IsBitSet(UnsafeNativeMethods.GetMenuState(_hmenu, _item, NativeMethods.MF_BYPOSITION), NativeMethods.MF_CHECKED); 1890if (!Misc.GetMenuItemInfo(_hmenu, _item, true, ref menuItemInfo)) 1949if (Misc.GetMenuItemInfo(_hmenu, _item, true, ref menuItemInfo)) 1983IntPtr submenu = UnsafeNativeMethods.GetSubMenu(_hmenu, _item); 2135IntPtr hSubmenu = UnsafeNativeMethods.GetSubMenu(_hmenu, _item); 2332while (!Misc.IsBitSet(UnsafeNativeMethods.GetMenuState(_hmenu, _item, NativeMethods.MF_BYPOSITION), NativeMethods.MF_HILITE) && 2372if( i == _item ) 2396if (_item == 0 && _menuType == WindowsMenu.MenuType.Toplevel && 2503int result = UnsafeNativeMethods.GetMenuItemID(_hmenu, _item); 2514itemId = "Item " + (_item + 1).ToString(CultureInfo.CurrentCulture); 2535int length = UnsafeNativeMethods.GetMenuString(_hmenu, _item, IntPtr.Zero, 0, NativeMethods.MF_BYPOSITION); 2544if (UnsafeNativeMethods.GetMenuString(_hmenu, _item, strbldr, length + 1, NativeMethods.MF_BYPOSITION) == length) 2557if (Misc.GetMenuItemInfo(_hmenu, _item, true, ref menuItemInfo)) 2648int state = UnsafeNativeMethods.GetMenuState(_hmenu, _item, NativeMethods.MF_BYPOSITION); 2660if (_item > 0) 2662return new MenuItem(_hwnd, _parent, _item - 1, _hmenu, _menuType); 2673int nextItem = _item + 1; 2711for (int i = 0; i < _item; i++)
MS\Internal\AutomationProxies\WindowsRebar.cs (8)
80int item = child._item; 97int item = child._item; 166return new RebarBandChildOverrideProxy (hwnd, band, band._item); 280return GetBoundingRectangle (_hwnd, _item); 290return Misc.GetItemToolTipText(_hwnd, hwndToolTip, _item); 330return new RebarBandChildOverrideProxy (HwndBand, this, _item); 380Misc.PostMessage(_hwnd, NativeMethods.RB_PUSHCHEVRON, (IntPtr)_item, IntPtr.Zero); 436if (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)
244return new int[] { AutomationInteropProvider.AppendRuntimeId, _item }; 258if (_item == -1) 278ScrollBarItem item = (ScrollBarItem) child._item; 298ScrollBarItem item = (ScrollBarItem) child._item;
MS\Internal\AutomationProxies\WindowsScrollBarBits.cs (6)
48switch ((WindowsScrollBar.ScrollBarItem)_item) 99if (iid == InvokePattern.Pattern && (WindowsScrollBar.ScrollBarItem) _item != WindowsScrollBar.ScrollBarItem.Thumb) 127return GetBoundingRectangle (_hwnd, _parent, (WindowsScrollBar.ScrollBarItem) _item, _sbFlag); 136return SR.GetResourceString(_asNames[_item]); 153if ((WindowsScrollBar.ScrollBarItem) _item == WindowsScrollBar.ScrollBarItem.Thumb) 160switch ((WindowsScrollBar.ScrollBarItem) _item)
MS\Internal\AutomationProxies\WindowsSlider.cs (6)
106SItem item = (SItem)(child._item + 1); 116SItem item = (SItem)(child._item - 1); 392return _item != (int) WindowsSlider.SItem.Thumb && iid == InvokePattern.Pattern ? this : null; 400return GetBoundingRectangle (_hwnd, (WindowsSlider.SItem) _item, _fHorizontal); 419return SR.GetResourceString(_asNames[_item]); 438IntPtr wParam = (IntPtr) (_item == (int) WindowsSlider.SItem.LargeDecrement ? NativeMethods.VK_PRIOR : NativeMethods.VK_NEXT);
MS\Internal\AutomationProxies\WindowsStatusBar.cs (7)
155int item = child._item; 179int item = child._item; 460return GetBoundingRectangle (_hwnd, _item); 489return _item; 597int retValue = Misc.ProxySendMessageInt(_hwnd, NativeMethods.SB_GETTEXTLENGTHW, new IntPtr(_item), IntPtr.Zero); 602return XSendMessage.GetItemText(_hwnd, NativeMethods.SB_GETTEXTW, _item, len); 702return _item;
MS\Internal\AutomationProxies\WindowsSysHeader.cs (18)
118int item = child._item; 129int item = child._item; 258if (firstVisibleHeaderItem != null && firstVisibleHeaderItem._item > headerItem._item) 262columns = headerItem._item - firstVisibleHeaderItem._item; 264else if (lastVisibleHeaderItem != null && headerItem._item > lastVisibleHeaderItem._item) 268columns = headerItem._item - lastVisibleHeaderItem._item; 527return item == _item; 546int index = OrderToIndex (_hwnd, _item); 563int index = OrderToIndex (_hwnd, _item); 599if (_item > 0) 611if (_item > 0) 680if (XSendMessage.GetItem(_hwnd, _item, ref item)) 695if (item == _item) 718Rect rect = XSendMessage.GetItemRect(_hwnd, NativeMethods.HDM_GETITEMDROPDOWNRECT, _item);
MS\Internal\AutomationProxies\WindowsTab.cs (19)
179int item = child._item; 207int item = child._item; 913_fIsContent = !string.IsNullOrEmpty(GetName(_hwnd, _item, true)); 956return Misc.AccessKey(WindowsTabItem.GetItemText(_hwnd, _item)); 960return !string.IsNullOrEmpty(GetName(_hwnd, _item, true)); 972return Misc.GetItemToolTipText(_hwnd, hwndToolTip, _item); 984string name = GetAccessibleName(_item + 1); 991return GetName(_hwnd, _item, _windowsForms == WindowsFormsHelper.FormControlState.True); 1006if (focused == null || _item != focused._item) 1008Misc.ProxySendMessage(_hwnd, NativeMethods.TCM_SETCURFOCUS, new IntPtr(_item), IntPtr.Zero); 1042return new WindowsTabChildOverrideProxy(hwndChild, this, _item); 1171return (_item == selectedItem); 1180if (!XSendMessage.GetItem(_hwnd, _item, ref TCItem)) 1220parent.ScrollToItem(_item); 1260return Misc.ProxySendMessageInt(_hwnd, NativeMethods.TCM_GETCURFOCUS, IntPtr.Zero, IntPtr.Zero) == _item; 1277if (!XSendMessage.XSend(_hwnd, NativeMethods.TCM_GETITEMRECT, new IntPtr(_item), new IntPtr(&rectW32), Marshal.SizeOf(rectW32.GetType()), XSendMessage.ErrorValue.Zero)) 1311Misc.ProxySendMessage(_hwnd, NativeMethods.TCM_SETCURFOCUS, new IntPtr(_item), IntPtr.Zero); 1330string sName = WindowsTabItem.GetName(_hwnd, _item, true);
MS\Internal\AutomationProxies\WindowsTitleBar.cs (8)
66return new int [] { 4, unchecked((int)(long)_hwnd), _item }; 87return ReturnNextTitleBarChild (true, child._item + 1); 95return ReturnNextTitleBarChild (false, child._item - 1); 281switch (_item) 315switch (_item) 360return rects[_item]; 369switch (_item) 409switch (_item)
MS\Internal\AutomationProxies\WindowsToolbar.cs (12)
125if (child._item >= count) 131for (int item = child._item + 1; item >= 0 && item < count; item++) 152if (child._item >= count) 158for (int item = child._item - 1; item >= 0 && item < count; item--) 363if (XSendMessage.GetItem(_hwnd, _item, ref tbb)) 452return GetBoundingRectangle(_hwnd, _item); 505if (focused == null || _item != focused._item) 515Misc.ProxySendMessage(_hwnd, NativeMethods.TB_SETHOTITEM, new IntPtr(_item), IntPtr.Zero); 577return Misc.ProxySendMessageInt(_hwnd, NativeMethods.TB_GETHOTITEM, IntPtr.Zero, IntPtr.Zero) == _item; 608string name = GetAccessibleName(_item + 1); 625if (XSendMessage.GetItem(_hwnd, _item, ref tbb))
MS\Internal\AutomationProxies\WindowsTreeView.cs (8)
152TVItem item = (TVItem)child._item; 180TVItem item = (TVItem)child._item; 397return new TreeViewItem(hwnd, elParent, hItem, elParent._item + 1); 866return Misc.GetItemToolTipText(_hwnd, hwndToolTip, _item); 1320return hNext != IntPtr.Zero ? new TreeViewItem(_hwnd, this, hNext, _item + 1) : null; 1330return hPrev != IntPtr.Zero ? new TreeViewItem(_hwnd, this, hPrev, _item + 1) : null; 1338return hChild != IntPtr.Zero ? new TreeViewItem(_hwnd, this, hChild, _item + 1) : null; 1359return new TreeViewItem(_hwnd, this, hChild, _item + 1);
MS\Internal\AutomationProxies\WindowsUpDown.cs (5)
147if (child._item == (int)SpinItem.DownArrow) 160if (child._item == (int)SpinItem.UpArrow) 465return GetBoundingRectangle(_hwnd, (WindowsUpDown.SpinItem)_item); 489int item = _item; 521int item = _item;
MS\Internal\AutomationProxies\WinFormsSpinner.cs (1)
308return new WinformsSpinnerEdit(_hwnd, _elEdit._hwnd, _elUpDown._hwnd, _parent, _item);