3 writes to _item
UIAutomationClientsideProviders (3)
MS\Internal\AutomationProxies\ProxySimple.cs (1)
76
_item
= item;
MS\Internal\AutomationProxies\WindowsMenu.cs (1)
2876
_item
= item;
MS\Internal\AutomationProxies\WindowsScrollBarBits.cs (1)
49
_item
= (int) item;
231 references to _item
UIAutomationClientsideProviders (231)
MS\Internal\AutomationProxies\NonClientArea.cs (2)
333
return ReturnNextNonClientChild (true, (NonClientItem) child.
_item
+ 1);
341
return ReturnNextNonClientChild (false, (NonClientItem) child.
_item
- 1);
MS\Internal\AutomationProxies\ProxySimple.cs (3)
145
return Misc.AppendToRuntimeId(GetParent().GetRuntimeId(),
_item
);
172
id[2] =
_item
;
209
return
_item
>= 0 && _fIsContent;
MS\Internal\AutomationProxies\WindowsAltTab.cs (5)
118
return CreateAltTabItem(child.
_item
+ 1);
124
return CreateAltTabItem(child.
_item
- 1);
374
if (WindowsAltTab.GetAltTabInfo(_hwnd,
_item
, ref altTabInfo, itemText))
397
int row =
_item
/ columns;
398
int column =
_item
% columns;
MS\Internal\AutomationProxies\WindowsComboBox.cs (2)
224
if (child.
_item
== (int) ComboChildren.List && !IsSimpleCombo ())
237
if (child.
_item
== (int) ComboChildren.Button)
MS\Internal\AutomationProxies\WindowsEditBox.cs (3)
238
return new WindowsSpinner(hwndUpDown, _hwnd, _parent,
_item
);
249
return new WindowsSpinner(hwndUpDown, _hwnd, _parent,
_item
);
260
return new WindowsSpinner(hwndUpDown, _hwnd, _parent,
_item
);
MS\Internal\AutomationProxies\WindowsHyperlink.cs (6)
158
return GetLinkItem (child.
_item
+ 1) ? CreateHyperlinkItem (_linkItem, child.
_item
+ 1) : null;
166
return GetLinkItem (child.
_item
- 1) ? CreateHyperlinkItem (_linkItem, child.
_item
- 1) : null;
405
linkItem.iLink =
_item
;
514
if (bGetItemResult == true && HitTestInfo.item.iLink ==
_item
)
MS\Internal\AutomationProxies\WindowsListBox.cs (22)
219
int item = child.
_item
;
251
int item = child.
_item
;
737
return cb.GetListItemText(
_item
);
741
int iTextLen = Misc.ProxySendMessageInt(_hwnd, NativeMethods.LB_GETTEXTLEN, new IntPtr(
_item
), IntPtr.Zero);
752
return XSendMessage.GetItemText(_hwnd, NativeMethods.WM_USER + NativeMethods.LB_GETTEXT,
_item
, iTextLen);
756
string text = Misc.GetUnsafeText(_hwnd, NativeMethods.LB_GETTEXT, new IntPtr(
_item
), iTextLen);
790
bool itemSelected = IsSelected (_hwnd,
_item
);
795
if (_listBox.HasOtherSelections(
_item
))
846
if (ListboxItem.IsSelected (_hwnd,
_item
) && !_listBox.IsParentedByCombo())
897
if (!IsSelected(_hwnd,
_item
))
912
if (!UnSelect(_hwnd,
_item
))
923
return ListboxItem.IsSelected (_hwnd,
_item
);
954
Misc.ProxySendMessage(_hwnd, NativeMethods.LB_SETTOPINDEX, new IntPtr(
_item
), IntPtr.Zero);
1028
return Misc.ProxySendMessageInt(_hwnd, NativeMethods.LB_SETCARETINDEX, new IntPtr(
_item
), new IntPtr(0)) != NativeMethods.LB_ERR;
1032
return Select (_hwnd,
_item
, false);
1053
return Misc.ProxySendMessageInt(_hwnd, NativeMethods.LB_GETCARETINDEX, IntPtr.Zero, IntPtr.Zero) ==
_item
;
1057
return Misc.ProxySendMessageInt(_hwnd, NativeMethods.LB_GETSEL, new IntPtr(
_item
), IntPtr.Zero) >= 0;
1074
Misc.ProxySendMessage(_hwnd, NativeMethods.LB_GETITEMRECT, new IntPtr(
_item
), ref itemRect);
1095
IAccessible accChild = (IAccessible)accChildren[
_item
];
1143
Misc.ProxySendMessageInt(_hwnd, NativeMethods.LB_SETSEL, new IntPtr(1), new IntPtr(
_item
));
1148
Misc.ProxySendMessageInt(_hwnd, NativeMethods.LB_SETCURSEL, new IntPtr(
_item
), IntPtr.Zero);
1178
Misc.ProxySendMessageInt(_hwnd, NativeMethods.LB_SETCURSEL, new IntPtr(
_item
), IntPtr.Zero);
MS\Internal\AutomationProxies\WindowsListView.cs (3)
211
int item = child.
_item
;
322
int item = child.
_item
;
812
columns [headerItem.
_item
] = headerItem;
MS\Internal\AutomationProxies\WindowsListViewGroup.cs (2)
141
int current = child.
_item
;
194
int current = child.
_item
;
MS\Internal\AutomationProxies\WindowsListViewItem.cs (43)
92
if (iid == TogglePattern.Pattern && IsItemWithCheckbox(_hwnd,
_item
))
140
ii.iItem =
_item
;
158
if (WindowsListView.GetItemRect(_hwnd,
_item
, NativeMethods.LVIR_BOUNDS, out itemRectangle))
184
Accessible accItem = Accessible.Wrap(acc,
_item
+ 1);
201
string text = GetText(_hwnd,
_item
, 0);
208
Accessible accItem = Accessible.Wrap(acc,
_item
+ 1);
224
return WindowsListView.SetItemFocused (_hwnd,
_item
);
244
&& IsItemWithCheckbox(_hwnd,
_item
))
266
int item = child.
_item
;
286
int item = child.
_item
;
288
if (IsItemWithCheckbox(_hwnd,
_item
) && item == 0)
307
if (IsItemWithCheckbox(_hwnd,
_item
))
336
if (IsItemWithCheckbox(_hwnd,
_item
))
348
if (IsItemWithCheckbox (_hwnd,
_item
))
350
NativeMethods.Win32Rect checkboxRectangle = ListViewItemCheckbox.ListViewCheckBoxRect (_hwnd,
_item
);
354
return new ListViewItemCheckbox (_hwnd, this,
_item
, _checkbox);
361
return ListViewSubItem.ElementProviderFromPoint (_hwnd, this,
_item
, x, y);
401
if (!WindowsListView.MultiSelected (_hwnd) && WindowsListView.IsItemSelected (_hwnd,
_item
))
410
if (!WindowsListView.SelectItem(_hwnd,
_item
))
426
if (WindowsListView.IsItemSelected (_hwnd,
_item
))
448
if (!WindowsListView.SelectItem(_hwnd,
_item
))
464
if (!WindowsListView.IsItemSelected (_hwnd,
_item
))
484
if (!WindowsListView.UnSelectItem(_hwnd,
_item
))
495
return WindowsListView.IsItemSelected (_hwnd,
_item
);
535
WindowsListView.EnsureVisible (_hwnd,
_item
, true);
561
SetValue(val, _hwnd,
_item
);
569
return ListViewItem.GetText (_hwnd,
_item
, 0);
601
int column =
_item
/ rowCount;
603
return (
_item
- (column * rowCount));
608
return
_item
/ columnCount;
627
return
_item
/ rowCount;
631
int row =
_item
/ columnCount;
633
return (
_item
- (row * columnCount));
680
WindowsListView.EnsureVisible(_hwnd,
_item
, false);
856
return WindowsListView.IsItemFocused (_hwnd,
_item
);
901
return new ListViewSubItem (_hwnd, this, index,
_item
);
906
return new ListViewItemCheckbox (_hwnd, this,
_item
, _checkbox);
933
if (!WindowsListView.GetItemRect(_hwnd,
_item
, NativeMethods.LVIR_LABEL, out itemRectangle))
954
if (!WindowsListView.GetItemRect(_hwnd,
_item
, NativeMethods.LVIR_LABEL, out itemRectangle))
996
int groupID = GetGroupID (_hwnd,
_item
);
1005
int position = groupInfo.IndexOf (
_item
); //Array.IndexOf(groupInfo._items, _item);
1029
int groupID = GetGroupID (_hwnd,
_item
);
1038
int position = groupInfo.IndexOf (
_item
);
MS\Internal\AutomationProxies\WindowsListViewItemStartMenu.cs (1)
103
string key = AccessibleObject.get_accKeyboardShortcut(
_item
+ 1);
MS\Internal\AutomationProxies\WindowsListViewSubItem.cs (9)
64
if (iid == ValuePattern.Pattern &&
_item
== 0 && WindowsListView.ListViewEditable (_hwnd))
86
int lvir = (
_item
== 0) ? NativeMethods.LVIR_SELECTBOUNDS : NativeMethods.LVIR_BOUNDS;
88
if (!WindowsListView.GetSubItemRect (_hwnd, _itemParent,
_item
, lvir, out itemRectangle))
97
!WindowsListView.IsIconView(_hwnd) &&
_item
== 0 && 1 < ListViewItem.GetSubItemCount(_hwnd))
207
string name = ListViewItem.GetText(_hwnd, _itemParent,
_item
);
239
return ListViewItem.GetText (_hwnd, _itemParent,
_item
);
293
return
_item
;
340
return new IRawElementProviderSimple [] { new WindowsSysHeader.HeaderItem (hwndHeader, header,
_item
) };
384
return column ==
_item
;
MS\Internal\AutomationProxies\WindowsMenu.cs (28)
100
_expandedMenus[hwnd] = new MenuParentInfo(_parent._hwnd, _parent.
_item
, ((MenuItem)_parent)._menuType);
114
_expandedMenus[hwnd] = new MenuParentInfo(_parent._hwnd, _parent.
_item
, ((MenuItem)_parent)._menuType);
410
int item = child.
_item
;
420
int item = child.
_item
;
1197
_sAutomationId = "Separator " + (
_item
+ 1).ToString(CultureInfo.InvariantCulture); // This string is a non-localizable string
1295
if (Misc.GetMenuItemRect(_hwnd, _hmenu,
_item
, out rc))
1528
while (!Misc.IsBitSet(UnsafeNativeMethods.GetMenuState(_hmenu,
_item
, NativeMethods.MF_BYPOSITION), NativeMethods.MF_HILITE) &&
1618
IntPtr submenu = _menuType == MenuType.System ? _hmenu : UnsafeNativeMethods.GetSubMenu (_hmenu,
_item
);
1637
IntPtr submenu = _menuType == MenuType.System ? _hmenu : UnsafeNativeMethods.GetSubMenu (_hmenu,
_item
);
1886
return Misc.IsBitSet(UnsafeNativeMethods.GetMenuState(_hmenu,
_item
, NativeMethods.MF_BYPOSITION), NativeMethods.MF_HILITE);
1901
return Misc.IsBitSet(UnsafeNativeMethods.GetMenuState(_hmenu,
_item
, NativeMethods.MF_BYPOSITION), NativeMethods.MF_CHECKED);
1910
if (!Misc.GetMenuItemInfo(_hmenu,
_item
, true, ref menuItemInfo))
1969
if (Misc.GetMenuItemInfo(_hmenu,
_item
, true, ref menuItemInfo))
2003
IntPtr submenu = UnsafeNativeMethods.GetSubMenu(_hmenu,
_item
);
2155
IntPtr hSubmenu = UnsafeNativeMethods.GetSubMenu(_hmenu,
_item
);
2352
while (!Misc.IsBitSet(UnsafeNativeMethods.GetMenuState(_hmenu,
_item
, NativeMethods.MF_BYPOSITION), NativeMethods.MF_HILITE) &&
2392
if( i ==
_item
)
2416
if (
_item
== 0 && _menuType == WindowsMenu.MenuType.Toplevel &&
2523
int result = UnsafeNativeMethods.GetMenuItemID(_hmenu,
_item
);
2534
itemId = "Item " + (
_item
+ 1).ToString(CultureInfo.CurrentCulture);
2555
int length = UnsafeNativeMethods.GetMenuString(_hmenu,
_item
, IntPtr.Zero, 0, NativeMethods.MF_BYPOSITION);
2564
if (UnsafeNativeMethods.GetMenuString(_hmenu,
_item
, strbldr, length + 1, NativeMethods.MF_BYPOSITION) == length)
2577
if (Misc.GetMenuItemInfo(_hmenu,
_item
, true, ref menuItemInfo))
2668
int state = UnsafeNativeMethods.GetMenuState(_hmenu,
_item
, NativeMethods.MF_BYPOSITION);
2680
if (
_item
> 0)
2682
return new MenuItem(_hwnd, _parent,
_item
- 1, _hmenu, _menuType);
2693
int nextItem =
_item
+ 1;
2731
for (int i = 0; i <
_item
; i++)
MS\Internal\AutomationProxies\WindowsRebar.cs (8)
98
int item = child.
_item
;
115
int item = child.
_item
;
184
return new RebarBandChildOverrideProxy (hwnd, band, band.
_item
);
296
return GetBoundingRectangle (_hwnd,
_item
);
306
return Misc.GetItemToolTipText(_hwnd, hwndToolTip,
_item
);
346
return new RebarBandChildOverrideProxy (HwndBand, this,
_item
);
396
Misc.PostMessage(_hwnd, NativeMethods.RB_PUSHCHEVRON, (IntPtr)
_item
, IntPtr.Zero);
450
if (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)
261
return new int[] { AutomationInteropProvider.AppendRuntimeId,
_item
};
275
if (
_item
== -1)
296
ScrollBarItem item = (ScrollBarItem) child.
_item
;
316
ScrollBarItem item = (ScrollBarItem) child.
_item
;
MS\Internal\AutomationProxies\WindowsScrollBarBits.cs (6)
57
switch ((WindowsScrollBar.ScrollBarItem)
_item
)
108
if (iid == InvokePattern.Pattern && (WindowsScrollBar.ScrollBarItem)
_item
!= WindowsScrollBar.ScrollBarItem.Thumb)
136
return GetBoundingRectangle (_hwnd, _parent, (WindowsScrollBar.ScrollBarItem)
_item
, _sbFlag);
145
return ST.Get(_asNames[
_item
]);
162
if ((WindowsScrollBar.ScrollBarItem)
_item
== WindowsScrollBar.ScrollBarItem.Thumb)
169
switch ((WindowsScrollBar.ScrollBarItem)
_item
)
MS\Internal\AutomationProxies\WindowsSlider.cs (6)
122
SItem item = (SItem)(child.
_item
+ 1);
132
SItem item = (SItem)(child.
_item
- 1);
408
return
_item
!= (int) WindowsSlider.SItem.Thumb && iid == InvokePattern.Pattern ? this : null;
416
return GetBoundingRectangle (_hwnd, (WindowsSlider.SItem)
_item
, _fHorizontal);
435
return ST.Get(_asNames[
_item
]);
454
IntPtr wParam = (IntPtr) (
_item
== (int) WindowsSlider.SItem.LargeDecrement ? NativeMethods.VK_PRIOR : NativeMethods.VK_NEXT);
MS\Internal\AutomationProxies\WindowsStatusBar.cs (7)
169
int item = child.
_item
;
193
int item = child.
_item
;
473
return GetBoundingRectangle (_hwnd,
_item
);
502
return
_item
;
610
int retValue = Misc.ProxySendMessageInt(_hwnd, NativeMethods.SB_GETTEXTLENGTHW, new IntPtr(
_item
), IntPtr.Zero);
615
return XSendMessage.GetItemText(_hwnd, NativeMethods.SB_GETTEXTW,
_item
, len);
715
return
_item
;
MS\Internal\AutomationProxies\WindowsSysHeader.cs (18)
134
int item = child.
_item
;
145
int item = child.
_item
;
273
if (firstVisibleHeaderItem != null && firstVisibleHeaderItem.
_item
> headerItem.
_item
)
277
columns = headerItem.
_item
- firstVisibleHeaderItem.
_item
;
279
else if (lastVisibleHeaderItem != null && headerItem.
_item
> lastVisibleHeaderItem.
_item
)
283
columns = headerItem.
_item
- lastVisibleHeaderItem.
_item
;
545
return item ==
_item
;
564
int index = OrderToIndex (_hwnd,
_item
);
581
int index = OrderToIndex (_hwnd,
_item
);
617
if (
_item
> 0)
629
if (
_item
> 0)
698
if (XSendMessage.GetItem(_hwnd,
_item
, ref item))
713
if (item ==
_item
)
739
Rect rect = XSendMessage.GetItemRect(_hwnd, NativeMethods.HDM_GETITEMDROPDOWNRECT,
_item
);
MS\Internal\AutomationProxies\WindowsTab.cs (19)
182
int item = child.
_item
;
210
int item = child.
_item
;
914
_fIsContent = !string.IsNullOrEmpty(GetName(_hwnd,
_item
, true));
957
return Misc.AccessKey(WindowsTabItem.GetItemText(_hwnd,
_item
));
961
return !string.IsNullOrEmpty(GetName(_hwnd,
_item
, true));
973
return Misc.GetItemToolTipText(_hwnd, hwndToolTip,
_item
);
985
string name = GetAccessibleName(
_item
+ 1);
992
return GetName(_hwnd,
_item
, _windowsForms == WindowsFormsHelper.FormControlState.True);
1007
if (focused == null ||
_item
!= focused.
_item
)
1009
Misc.ProxySendMessage(_hwnd, NativeMethods.TCM_SETCURFOCUS, new IntPtr(
_item
), IntPtr.Zero);
1043
return new WindowsTabChildOverrideProxy(hwndChild, this,
_item
);
1172
return (
_item
== selectedItem);
1181
if (!XSendMessage.GetItem(_hwnd,
_item
, ref TCItem))
1221
parent.ScrollToItem(
_item
);
1261
return Misc.ProxySendMessageInt(_hwnd, NativeMethods.TCM_GETCURFOCUS, IntPtr.Zero, IntPtr.Zero) ==
_item
;
1278
if (!XSendMessage.XSend(_hwnd, NativeMethods.TCM_GETITEMRECT, new IntPtr(
_item
), new IntPtr(&rectW32), Marshal.SizeOf(rectW32.GetType()), XSendMessage.ErrorValue.Zero))
1312
Misc.ProxySendMessage(_hwnd, NativeMethods.TCM_SETCURFOCUS, new IntPtr(
_item
), IntPtr.Zero);
1331
string sName = WindowsTabItem.GetName(_hwnd,
_item
, true);
MS\Internal\AutomationProxies\WindowsTitleBar.cs (8)
78
return new int [] { 4, unchecked((int)(long)_hwnd),
_item
};
99
return ReturnNextTitleBarChild (true, child.
_item
+ 1);
107
return ReturnNextTitleBarChild (false, child.
_item
- 1);
293
switch (
_item
)
327
switch (
_item
)
372
return rects[
_item
];
381
switch (
_item
)
421
switch (
_item
)
MS\Internal\AutomationProxies\WindowsToolbar.cs (12)
138
if (child.
_item
>= count)
144
for (int item = child.
_item
+ 1; item >= 0 && item < count; item++)
165
if (child.
_item
>= count)
171
for (int item = child.
_item
- 1; item >= 0 && item < count; item--)
377
if (XSendMessage.GetItem(_hwnd,
_item
, ref tbb))
466
return GetBoundingRectangle(_hwnd,
_item
);
519
if (focused == null ||
_item
!= focused.
_item
)
529
Misc.ProxySendMessage(_hwnd, NativeMethods.TB_SETHOTITEM, new IntPtr(
_item
), IntPtr.Zero);
591
return Misc.ProxySendMessageInt(_hwnd, NativeMethods.TB_GETHOTITEM, IntPtr.Zero, IntPtr.Zero) ==
_item
;
622
string name = GetAccessibleName(
_item
+ 1);
639
if (XSendMessage.GetItem(_hwnd,
_item
, ref tbb))
MS\Internal\AutomationProxies\WindowsTreeView.cs (8)
166
TVItem item = (TVItem)child.
_item
;
194
TVItem item = (TVItem)child.
_item
;
411
return new TreeViewItem(hwnd, elParent, hItem, elParent.
_item
+ 1);
880
return Misc.GetItemToolTipText(_hwnd, hwndToolTip,
_item
);
1334
return hNext != IntPtr.Zero ? new TreeViewItem(_hwnd, this, hNext,
_item
+ 1) : null;
1344
return hPrev != IntPtr.Zero ? new TreeViewItem(_hwnd, this, hPrev,
_item
+ 1) : null;
1352
return hChild != IntPtr.Zero ? new TreeViewItem(_hwnd, this, hChild,
_item
+ 1) : null;
1373
return new TreeViewItem(_hwnd, this, hChild,
_item
+ 1);
MS\Internal\AutomationProxies\WindowsUpDown.cs (5)
167
if (child.
_item
== (int)SpinItem.DownArrow)
180
if (child.
_item
== (int)SpinItem.UpArrow)
485
return GetBoundingRectangle(_hwnd, (WindowsUpDown.SpinItem)
_item
);
509
int item =
_item
;
541
int item =
_item
;
MS\Internal\AutomationProxies\WinFormsSpinner.cs (1)
324
return new WinformsSpinnerEdit(_hwnd, _elEdit._hwnd, _elUpDown._hwnd, _parent,
_item
);