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