2 writes to indexOfFirstDisplayedItem
System.Windows.Forms (2)
winforms\Managed\System\WinForms\ToolStripDropDownMenu.cs (2)
798
this.
indexOfFirstDisplayedItem
= -1;
815
this.
indexOfFirstDisplayedItem
= i;
9 references to indexOfFirstDisplayedItem
System.Windows.Forms (9)
winforms\Managed\System\WinForms\ToolStripDropDownMenu.cs (9)
723
if (this.
indexOfFirstDisplayedItem
== -1 || this.
indexOfFirstDisplayedItem
>= this.Items.Count) {
731
if (this.
indexOfFirstDisplayedItem
== 0) {
736
ToolStripItem itemTop = this.Items[this.
indexOfFirstDisplayedItem
- 1];
737
ToolStripItem itemBottom = this.Items[this.
indexOfFirstDisplayedItem
];
743
if (this.
indexOfFirstDisplayedItem
== this.Items.Count - 1) {
748
ToolStripItem itemTop = this.Items[this.
indexOfFirstDisplayedItem
];
749
ToolStripItem itemBottom = this.Items[this.
indexOfFirstDisplayedItem
+ 1];
814
if (this.
indexOfFirstDisplayedItem
== -1 && displayRectangle.Contains(displayRectangle.X, item.Bounds.Top)) {