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)
730if (_indexOfFirstDisplayedItem == -1 || _indexOfFirstDisplayedItem >= Items.Count) 741if (_indexOfFirstDisplayedItem == 0) 748ToolStripItem itemTop = Items[_indexOfFirstDisplayedItem - 1]; 749ToolStripItem itemBottom = Items[_indexOfFirstDisplayedItem]; 756if (_indexOfFirstDisplayedItem == Items.Count - 1) 761ToolStripItem itemTop = Items[_indexOfFirstDisplayedItem]; 762ToolStripItem itemBottom = Items[_indexOfFirstDisplayedItem + 1]; 834if (_indexOfFirstDisplayedItem == -1 && displayRectangle.Contains(displayRectangle.X, item.Bounds.Top))