2 writes to _indexOfFirstDisplayedItem
System.Windows.Forms (2)
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownMenu.cs (2)
813
_indexOfFirstDisplayedItem
= -1;
836
_indexOfFirstDisplayedItem
= i;
9 references to _indexOfFirstDisplayedItem
System.Windows.Forms (9)
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownMenu.cs (9)
730
if (
_indexOfFirstDisplayedItem
== -1 ||
_indexOfFirstDisplayedItem
>= Items.Count)
741
if (
_indexOfFirstDisplayedItem
== 0)
748
ToolStripItem itemTop = Items[
_indexOfFirstDisplayedItem
- 1];
749
ToolStripItem itemBottom = Items[
_indexOfFirstDisplayedItem
];
756
if (
_indexOfFirstDisplayedItem
== Items.Count - 1)
761
ToolStripItem itemTop = Items[
_indexOfFirstDisplayedItem
];
762
ToolStripItem itemBottom = Items[
_indexOfFirstDisplayedItem
+ 1];
834
if (
_indexOfFirstDisplayedItem
== -1 && displayRectangle.Contains(displayRectangle.X, item.Bounds.Top))