2 writes to _indexOfFirstDisplayedItem
System.Windows.Forms (2)
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownMenu.cs (2)
818
_indexOfFirstDisplayedItem
= -1;
841
_indexOfFirstDisplayedItem
= i;
9 references to _indexOfFirstDisplayedItem
System.Windows.Forms (9)
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownMenu.cs (9)
734
if (
_indexOfFirstDisplayedItem
== -1 ||
_indexOfFirstDisplayedItem
>= Items.Count)
745
if (
_indexOfFirstDisplayedItem
== 0)
752
ToolStripItem itemTop = Items[
_indexOfFirstDisplayedItem
- 1];
753
ToolStripItem itemBottom = Items[
_indexOfFirstDisplayedItem
];
760
if (
_indexOfFirstDisplayedItem
== Items.Count - 1)
766
ToolStripItem itemTop = Items[
_indexOfFirstDisplayedItem
];
767
ToolStripItem itemBottom = Items[
_indexOfFirstDisplayedItem
+ 1];
839
if (
_indexOfFirstDisplayedItem
== -1 && displayRectangle.Contains(displayRectangle.X, item.Bounds.Top))