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