28 references to GetNextItem
System.Windows.Forms (6)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (3)
2040return GetNextItem(start, direction); 3058ToolStripItem? nextItem = GetNextItem(currentSel, ArrowDirection.Down); 3067ToolStripItem? nextItem = GetNextItem(currentSel, ArrowDirection.Up);
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownMenu.cs (1)
527return GetNextItem(start, direction);
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.ToolStripItemAccessibleObject.cs (2)
258nextItem = (Owner.IsOnDropDown) ? parent.GetNextItem(Owner, ArrowDirection.Up) : 262nextItem = (Owner.IsOnDropDown) ? parent.GetNextItem(Owner, ArrowDirection.Down) :
System.Windows.Forms.Design (3)
System\Windows\Forms\Design\ToolStripDesigner.cs (2)
2006ToolStripItem nextItem = ToolStrip.GetNextItem(ToolStrip.OverflowButton, ArrowDirection.Left); 2036ToolStripItem nextItem = ddi.DropDown.GetNextItem(null, ArrowDirection.Down);
System\Windows\Forms\Design\ToolStripKeyboardHandlingService.cs (1)
313return parent.GetNextItem(startItem, direction);
System.Windows.Forms.Tests (19)
System\Windows\Forms\ToolStripDropDownTests.cs (5)
4897ToolStripItem actual = toolStrip.DropDown.GetNextItem(start: null, direction: ArrowDirection.Up); 4901actual = toolStrip.DropDown.GetNextItem(start: items[0], direction: ArrowDirection.Up); 4905actual = toolStrip.DropDown.GetNextItem(start: null, direction: ArrowDirection.Down); 4909actual = toolStrip.DropDown.GetNextItem(start: items[0], direction: ArrowDirection.Down); 4913actual = toolStrip.DropDown.GetNextItem(start: items[4], direction: ArrowDirection.Down);
System\Windows\Forms\ToolStripTests.cs (14)
4779Assert.Null(toolStrip.GetNextItem(new SubToolStripItem(), direction)); 4780Assert.Null(toolStrip.GetNextItem(null, direction)); 4788Assert.Throws<InvalidEnumArgumentException>("direction", () => toolStrip.GetNextItem(new SubToolStripItem(), direction)); 4789Assert.Throws<InvalidEnumArgumentException>("direction", () => toolStrip.GetNextItem(null, direction)); 4821ToolStripItem actual = toolStrip.GetNextItem(toolStrip.Items[0], ArrowDirection.Right); 4842ToolStripItem nextToolStripItem1 = toolStrip.GetNextItem(toolStripButton1, ArrowDirection.Right); 4843ToolStripItem nextToolStripItem2 = toolStrip.GetNextItem(toolStripButton2, ArrowDirection.Right); 4844ToolStripItem nextToolStripItem3 = toolStrip.GetNextItem(toolStripButton3, ArrowDirection.Right); 4867ToolStripItem actual = toolStrip.GetNextItem(toolStrip.Items[0], ArrowDirection.Left); 4888ToolStripItem previousToolStripItem1 = toolStrip.GetNextItem(toolStripButton1, ArrowDirection.Left); 4889ToolStripItem previousToolStripItem2 = toolStrip.GetNextItem(toolStripButton3, ArrowDirection.Left); 4890ToolStripItem previousToolStripItem3 = toolStrip.GetNextItem(toolStripButton2, ArrowDirection.Left); 7298ToolStripItem previousToolStripItem1 = toolStrip.GetNextItem(start: null, ArrowDirection.Left); 7301ToolStripItem previousToolStripItem2 = toolStrip.GetNextItem(start: null, ArrowDirection.Right);